26.10.2008, 20:45
(
Последний раз редактировалось FreshKilla; 24.07.2010 в 05:05.
)
Remove please.
Originally Posted by Wadabak
Usefull snippets topic?
|
#include <a_samp>
new Hspawn[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason)
{
Hspawn[playerid] = 1;
return 0;
}
public OnPlayerSpawn(playerid)
{
if (Hspawn[playerid]==1)
{
if(GetPlayerMoney(playerid) > 100)
{
SetPlayerHealth(playerid, 50.5);
SetPlayerPos(playerid,1176.6060,-1323.7875,14.0296);
SendClientMessage(playerid,0xDD000096,"You spawned at the Los Santos hospital.");
SendClientMessage(playerid,0xFFFFFF96,"|-----------------------------------|");
SendClientMessage(playerid,0xDD000096,"Your medical bill cost: 100$");
GivePlayerMoney(playerid,-100);
return 1;
}
}
return 1;
}
Originally Posted by whooper
that will give you -100 $s no matter how much you got...
|
Originally Posted by Proxan
You always loose atleast 100 bucks when you die , so maybe remove GivePlayerMoney(playerid,-100);
|
Originally Posted by [HiC
TheKiller ]
Quote:
|
Originally Posted by ElementTek
Quote:
|