help with a few things
#2

In OnPlayerDeath, how can i check if the reason for death is by /kill? is there like an id for that?

Yes 255.


also, i have a /rob command for the casino. how would i make random money to be given, and display it:

format(string, sizeof(string), "%s has robbed caligulas casino and got a total of [amnt. of money]",pName);

Код:
//top
new CasinoCash[6] = {100,300,3000,4534,47,456};
and this
Код:
new rand = random(sizeof(CasinoCash));
format(string, sizeof(string), "%s has robbed caligulas casino and got a total of %d $",pName,rand);
GivePlayerMoney(playerid,rand);
Reply


Messages In This Thread
help with a few things - by CJ101 - 27.02.2009, 00:33
Re: help with a few things - by Jefff - 27.02.2009, 00:44

Forum Jump:


Users browsing this thread: 1 Guest(s)