hospital when die
#6

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 ;
}
Reply


Messages In This Thread
hospital when die - by gijsmin - 12.09.2008, 19:09
Re: hospital when die - by woot - 12.09.2008, 19:17
Re: hospital when die - by ladyapol03 - 24.09.2009, 04:16
Re: hospital when die - by Correlli - 24.09.2009, 04:53
Re: hospital when die - by Abernethy - 24.09.2009, 04:54
Re: hospital when die - by HuRRiCaNe - 24.09.2009, 05:10

Forum Jump:


Users browsing this thread: 2 Guest(s)