hospital when die
#1

hello
i have
public OnPlayerDeath(playerid, killerid, reason)
{
GivePlayerMoney(playerid,-500);
SendClientMessage(playerid, 0x00FF00AA, "Your hospital bill is 500$!");
}
but i want if you have no money you are jailed
i have made an jail help me please



sorry for my badddd english i'm dutch
Reply
#2

Use:

if GetPlayerCash -0 , { jail.. }else{ your hospital bills are 100$..... }
Reply
#3

A hospital is an institution for health care providing patient treatment by specialized staff and equipment, and often but not always providing for longer-term patient stays. It is where we cure our sick not to die.




_________________
International medical insurance
Reply
#4

No shit bot?
Reply
#5

Quote:
Originally Posted by ladyapol03
A hospital is an institution for health care providing patient treatment by specialized staff and equipment, and often but not always providing for longer-term patient stays. It is where we cure our sick not to die.




_________________
International medical insurance
noooooooob. Maybe he would like it so they are 'injured' not 'dead' when their health drops to 0.
Reply
#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


Forum Jump:


Users browsing this thread: 5 Guest(s)