20.10.2010, 14:53
Under which function are you giving them the money? Is it under OnPlayerSpawn? If so, you need to make a variable and assign it values when they die. For example:
pawn Код:
// At the top:
new pDied[MAX_PLAYERS] = 0; //or whatever you want to name it
public OnPlayerSpawn(playerid)
{
if(!pDied[playerid])
{
GivePlayerMoney(playerid, 1000);
}
if(pDied[playerid])
{
pDied[playerid] = 0;
}
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
GivePlayerMoney(playerid, -100);
pDied[playerid] = 1;
return 1;
}