Need a little help with some player checks
#3

I will just give you an example for caged.
At the top
pawn Код:
new IsCaged[MAX_PLAYERS];
In the script where you execute command cage on him(obviously instead of targetid put the id that player has been caged)
pawn Код:
IsCaged[targetid] = 1;
On kill command
pawn Код:
if(IsCaged[playerid] == 1) return SendClientMessage(playerid,-1,"Nope.");
Uncage comand
pawn Код:
IsCaged[playerid] = 0;
Reply


Messages In This Thread
Need a little help with some player checks - by mickos - 02.01.2013, 16:29
Re: Need a little help with some player checks - by Faisal_khan - 02.01.2013, 16:32
Re: Need a little help with some player checks - by InfiniTy. - 02.01.2013, 16:34
Re: Need a little help with some player checks - by mickos - 02.01.2013, 16:40
Re: Need a little help with some player checks - by InfiniTy. - 02.01.2013, 16:42
Re: Need a little help with some player checks - by Faisal_khan - 02.01.2013, 16:43
Re: Need a little help with some player checks - by DaRk_RaiN - 02.01.2013, 16:44
Re: Need a little help with some player checks - by mickos - 02.01.2013, 17:13

Forum Jump:


Users browsing this thread: 2 Guest(s)