Prison disable TELES [+REP]
#6

i think it would be better if you create a variable for that, like this:
pawn Код:
new IsInJail[MAX_PLAYERS];
your command for jail or wutever:
pawn Код:
IsInJail[playerid] = 1;
in your onplayercommandperformed callback(if you have it in a jail command, else tell me how you have it:
pawn Код:
if(IsInJail[playerid] == 1)
{
SendClientMessage(playerid, 0xFF0000FF, "ERROR: you cant teleport when your in jail!");
}
that should do it i think

EDIT: lool when i started writing this there wasnt reply, anyways i see you got more help
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)