15.03.2011, 22:40
I need just Drop all weapons and money when die (0.3c)..
Thx.
Thx.
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;
}