Random word
#4

Use something like this:


pawn Код:
new RandomNames[][4] =
{
    {CAT},
    {DOG},
    {COW}
};

//onplayercommandtext
    new rand = random(sizeof(RandomNames));

format(string, sizeof(string), "[KILL] "white"%s "green"Is killed by "white"%s"red"Cash reward: %d", pname, killername, rand);
Reply


Messages In This Thread
Random word - by BloodGuy - 02.11.2011, 14:09
Respuesta: Random word - by Super_Panda - 02.11.2011, 14:10
Re: Random word - by BloodGuy - 02.11.2011, 14:12
Respuesta: Random word - by Super_Panda - 02.11.2011, 14:28
Re: Respuesta: Random word - by FireCat - 02.11.2011, 14:29
Re: Random word - by BloodGuy - 02.11.2011, 14:49
Re: Random word - by FireCat - 02.11.2011, 14:52
Respuesta: Random word - by Super_Panda - 02.11.2011, 14:52
Re: Respuesta: Random word - by BloodGuy - 02.11.2011, 17:13

Forum Jump:


Users browsing this thread: 4 Guest(s)