Random messages with string
#2

pawn Код:
new str[128];
new rand = random(sizeof(randominf));
switch(rand)
{
    case 0: format(str,sizeof(str),randominf[rand],GetName(giveplayerid),kills[giveplayerid]);
    case 1: format(str,sizeof(str),randominf[rand],GetName(giveplayerid),something);
    default: format(str,sizeof(str),randominf[rand],GetName(giveplayerid),level[giveplayerid]);
}
SendClientMessageToAll(-1,str);
Reply


Messages In This Thread
Random messages with string - by Lorenzosdm - 18.11.2013, 19:26
Re: Random messages with string - by Jefff - 18.11.2013, 19:45
Re: Random messages with string - by Lorenzosdm - 18.11.2013, 19:56

Forum Jump:


Users browsing this thread: 2 Guest(s)