24.09.2009, 05:10
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
//What i done is a bit easy,try this
if(GetPlayerMoney(playerid)<500)
{
SendClientMessage(playerid, 0x00FF00AA, "You have not got money to pay for the hospital , you have been jailed.");
SetPlayerPos(playerid,/*HERE U PUT YOUR POS*/);
return 1;
}
else
{
SendClientMessage(playerid, 0x00FF00AA, "Your hospital bill is 500$!");
GivePlayerMoney(playerid,-500);
}
return 1 ;
}