@name Swag Face Generator

interval(15000)

if(first())
{
    function string face()
    {
        local Brows = array("", "", "", "", "", "", ">")
        local Eyes = array(":", "\;")
        local Noses = array("^", "`", "'", ",", "~", "*")
        local Mouths = array("0", "O", "K", "L", "I", ")", "(", "]", "[", "{", "|", "\\", "/", "c", "U", "C", "S", "$", "Y")
        
        #Brows
        local BrowS = ""
        for(I = 1, randint(1, 4))
        {
            BrowS += Brows[randint(Brows:count()), string]
        }
        
        #Nose
        local NoseS = ""
        for(I = 1, 3)
        {
            NoseS += Noses[randint(Noses:count()), string]
        }
        
        #Mouth
        local MouthS = Mouths[randint(Mouths:count()), string]
        local MouthI = randint(1, 3)
        if(MouthI > 1)
        {
            for(I = 1, MouthI - 1)
            {
                MouthS += MouthS
            }
        }
        
        local Face = BrowS + ":" + NoseS + MouthS
        
        return Face
    }
}

#concmd("ulx rcon ulx cexec \"" + players()[randint(numPlayers()), entity]:name() + "\" say nice meme   " + face())
#concmd("ulx rcon ulx cexec \"" + players()[randint(numPlayers()), entity]:name() + "\" say memes  " + face())
concmd("say meme! " + face())
#propSpawn("models/props_phx/ww2bomb.mdl", players()[randint(numPlayers()), entity]:shootPos(), 1):propBreak()
