05.05.2012, 13:50
Quote:
|
Hey all! I made a little Jail here. OnPlayerDeath - SetPlayerPos(killerid,1760.0499,-1538.4115,9.3113); --(the jail)
But they can teleport out.. And I have to add something on my teles : if(isplayerinrangeofpoint, 1760.0499,-1538.4115,9.3113); or i dont know. you know what im trying to say? I need help so they cant teleport if they r in that jail.. atleast 30 metres around the target.. then it will say SendClientMessage(playerid, GREEN," .:: You are JAILED and your teleports have been disabled! ::."); Need Help ![]() +REP if helped |
pawn Код:
new isJailed[MAX_PLAYERS]; // at top
//On player Dis connect and onplayerconnect
isJailed[playerid] = 0;
// on the Jail command or onplayerdeath as you like
isJailed[playerid] = 1;
// now if you want to disable tele's you could add this line to the command you want disable for the command or if you're using strcmp commands you could do something like this:-
if(isJailed[playerid] == 1) return SendClientMessage(playerid, -1, "You can't teleport you are a prisoner");
-FalconX



