15.03.2011, 22:42
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new initmoney; //Makes player money a varible.
initmoney = GetPlayerMoney(playerid); Saves players money into a variable.
if(initmoney >0) { // If money is greater than 0
GivePlayerMoney(playerid, -initmoney); // Give player money -Initmoney (will set to 0)
}
return 1;
}
Also, when you die, it should already make you lose weapons. If not, just add ResetPlayerWeapons(playerid); before the first "}".