When player dies money resets
#10

I think that I understood you..
PHP код:
new bool:Dead[MAX_PLAYERS]; 
in
PHP код:
OnPlayerDeath(playerid)
{
Dead[playerid] == true;
return 
1;

now in
PHP код:
OnPlayerSpawn(playerid)
{
if(
Death[playerid] == true)
{
// your code.
    
new mrand =random(10000);
    
GivePlayerMoney(playerid,-mrand);
}
return 
1;

Reply


Messages In This Thread
When player dies money resets - by captainjohn - 02.04.2012, 11:12
Re: When player dies money resets - by Face9000 - 02.04.2012, 11:28
Re: When player dies money resets - by captainjohn - 02.04.2012, 11:35
Re: When player dies money resets - by TzAkS. - 02.04.2012, 11:54
Re: When player dies money resets - by captainjohn - 02.04.2012, 11:58
Re: When player dies money resets - by blank. - 02.04.2012, 11:58
Re: When player dies money resets - by captainjohn - 02.04.2012, 12:00
Re: When player dies money resets - by blank. - 02.04.2012, 12:05
Re: When player dies money resets - by captainjohn - 02.04.2012, 12:16
Re: When player dies money resets - by Itzhak E. - 02.04.2012, 12:19

Forum Jump:


Users browsing this thread: 1 Guest(s)