cage help
#7

Quote:
Originally Posted by ProShooter22
Посмотреть сообщение
Then put this under where it cages the player:
pawn Код:
SetPVarInt(player,"iscaged",1[player]);
And put this under anywhere that it uncages the player:
pawn Код:
SetPVarInt(player,"iscaged",0[player]);

where must i add these this pls tell
That will probably give some errors, try:

in the /cage CMD
pawn Код:
SetPVarInt(pID, "iscaged", 1);

When player gets uncaged
SetPvarInt(pID, "iscaged", 0);
And this in the /kill CMD.

pawn Код:
if(GetPvarInt(pID, "iscaged") == 1) return SendClientMessage(playerid, COLOR_RED, "You cannot use this command when caged.");
Reply


Messages In This Thread
cage help - by ProShooter22 - 02.05.2013, 02:54
Re: cage help - by vvhy - 02.05.2013, 04:18
Re: cage help - by Pottus - 02.05.2013, 05:04
Re: cage help - by [..MonTaNa..] - 02.05.2013, 05:33
Re: cage help - by ProShooter22 - 02.05.2013, 05:36
Re: cage help - by ProShooter22 - 02.05.2013, 05:41
Re: cage help - by [..MonTaNa..] - 02.05.2013, 05:47
Re: cage help - by ProShooter22 - 02.05.2013, 05:59
Re: cage help - by [..MonTaNa..] - 02.05.2013, 12:34
Re: cage help - by ProShooter22 - 02.05.2013, 15:51

Forum Jump:


Users browsing this thread: 3 Guest(s)