hospital when die - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: hospital when die (
/showthread.php?tid=50573)
hospital when die -
gijsmin - 12.09.2008
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
Re: hospital when die -
woot - 12.09.2008
Use:
if GetPlayerCash -0 , { jail.. }else{ your hospital bills are 100$..... }
Re: hospital when die -
ladyapol03 - 24.09.2009
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
Re: hospital when die -
Correlli - 24.09.2009
No shit bot?
Re: hospital when die -
Abernethy - 24.09.2009
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.
Re: hospital when die -
HuRRiCaNe - 24.09.2009
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 ;
}