Code for cash on spawn
#9

Quote:
Originally Posted by admantis
Посмотреть сообщение
pawn Код:
// This function sets a random money between 2000-5000 when you spawn.
public OnPlayerSpawn(playerid)
{
    ResetPlayerMoney(playerid);
    GivePlayerMoney(playerid,2000+random(3000));
    return 1;
}
I dont know if you mean this
Like when you die, it takes part of your money away.

Ex: I start out with 5000
And I die and my cash goes to 4000
And I die again and it goes to 3000 and so on
Reply


Messages In This Thread
Code for cash on spawn - by David5290 - 29.01.2011, 16:49
Re: Code for cash on spawn - by armyoftwo - 29.01.2011, 16:50
[No subject] - by David5290 - 29.01.2011, 17:06
Re: Code for cash on spawn - by [P4] - 29.01.2011, 17:38
Re: Code for cash on spawn - by JaTochNietDan - 29.01.2011, 17:38
Re: Code for cash on spawn - by David5290 - 29.01.2011, 17:47
Re: Code for cash on spawn - by admantis - 29.01.2011, 17:53
Re: Code for cash on spawn - by JaTochNietDan - 29.01.2011, 17:54
Re: Code for cash on spawn - by David5290 - 29.01.2011, 17:55
Re: Code for cash on spawn - by David5290 - 29.01.2011, 18:00

Forum Jump:


Users browsing this thread: 4 Guest(s)