Code for cash on spawn
#10

Quote:
Originally Posted by JaTochNietDan
Посмотреть сообщение
Okay well then make use of OnPlayerDeath and OnPlayerConnect.

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    GivePlayerMoney(playerid,-2000);
    return 1;
}

public OnPlayerConnect(playerid)
{
    GivePlayerMoney(playerid,5000);
    return 1;
}
I hope that helps!
It works, it takes away 2k but after I die it goes to 5000 again lol
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)