SAMP Help Alive To Teleport?
#1

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
Reply
#2

GetPlayerHealth(playerid) =< 1 or something?
Reply
#3

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
Reply
#4

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
Reply
#5

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


Forum Jump:


Users browsing this thread: 2 Guest(s)