SA-MP Forums Archive
SAMP Help Alive To Teleport? - 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: SAMP Help Alive To Teleport? (/showthread.php?tid=186928)



SAMP Help Alive To Teleport? - hadzx - 31.10.2010

how do i make it so you MUST be alive to teleport to placeS?


info : who ever helps me il host ur server ONLINE for 1hour


Re: SAMP Help Alive To Teleport? - Eeeh - 31.10.2010

GetPlayerHealth(playerid) =< 1 or something?


Re: SAMP Help Alive To Teleport? - dark_clown - 31.10.2010

pawn Код:
new spawned[MAX_PLAYERS]
Quote:

OnPlayerDeath

add
pawn Код:
spawned[playerid] = 0;
pawn Код:
public OnPlayerCommandText
or somthing
pawn Код:
if(spawned[playerid] == 0) return SendClientMessage(playerid, yourcolor, "You must be spawned");
if it dosnt work tell me, i just wrote everything from head


Re: SAMP Help Alive To Teleport? - hadzx - 31.10.2010

Quote:
Originally Posted by dark_clown
Посмотреть сообщение
pawn Код:
new spawned[MAX_PLAYERS]
add
pawn Код:
spawned[playerid] = 0;
pawn Код:
public OnPlayerCommandText
or somthing
pawn Код:
if(spawned[playerid] == 0) return SendClientMessage(playerid, yourcolor, "You must be spawned");
if it dosnt work tell me, i just wrote everything from head
thanks helped


Re: SAMP Help Alive To Teleport? - Mean - 31.10.2010

Or just
pawn Код:
if(GetPlayerHealth(playerid) <= 0 ) return SendClientMessage(playerid, color, "You must be spawned to use this");
Without any new funcs and stuff