Prison disable TELES [+REP]
#2

Quote:
Originally Posted by Kudoz
Посмотреть сообщение
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
I know you are trying to restrict the teleports for the prisoner right? if so:-

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");
Feel free to ask me if there's something you don't know

-FalconX
Reply


Messages In This Thread
Prison disable TELES [+REP] - by Kudoz - 05.05.2012, 13:43
Re: Prison disable TELES [+REP] - by FalconX - 05.05.2012, 13:50
Re: Prison disable TELES [+REP] - by HuSs3n - 05.05.2012, 13:51
Re: Prison disable TELES [+REP] - by Kudoz - 05.05.2012, 13:55
Re: Prison disable TELES [+REP] - by FalconX - 05.05.2012, 13:56
Re: Prison disable TELES [+REP] - by niels44 - 05.05.2012, 13:59
Re: Prison disable TELES [+REP] - by Kudoz - 05.05.2012, 14:08
Re: Prison disable TELES [+REP] - by Kudoz - 05.05.2012, 14:11
Re: Prison disable TELES [+REP] - by FalconX - 05.05.2012, 14:14
Re: Prison disable TELES [+REP] - by Kudoz - 05.05.2012, 14:20

Forum Jump:


Users browsing this thread: 1 Guest(s)