Random word
#9

Quote:
Originally Posted by Super_Panda
Посмотреть сообщение
Add

pawn Код:
new rand = random(sizeof(RandomNames));
in the command
I have that.
I have now:

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	new rand = random(sizeof(RandomNames));
	new Random = random(15000);
   	killtimer1 = SetTimerEx("killtimer2",35000,0,"d",playerid);
   	new pname[24];
   	new string[130];
   	GivePlayerMoney(playerid,Random);
   	GetPlayerName(playerid, pname, sizeof(pname));
   	format(string, sizeof(string), "[KILL] "white"%s "green"Is killed by "white"%s. "red"Cash reward: %d", pname, rand, Random);
   	SendClientMessageToAll(COLOR_RED, string);
   	return 1;
}
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: 1 Guest(s)