/dmzone?
#2

Basic exemple for you (Not Tested):

Top of your script:
pawn Код:
new bool: DisableCmds[MAX_PLAYERS];
OnPlayerConnect:
pawn Код:
DisableCmds[playerid] = false;
OnPlayerCommandText(Top):

pawn Код:
if(DisableCmds[playerid] == true) return 0;
And Basic Teleport:
pawn Код:
if(strcmp(cmd, "/dmzone", true) == 0)
{
SetPlayerPos(playerid, X,Y,Z);
DisableCmds[playerid] = true;
return 1;
}
To exit:
pawn Код:
if(strcmp(cmd, "/exitdmzone", true) == 0)
{
SetPlayerPos(playerid, X,Y,Z);
DisableCmds[playerid] = false;
return 1;
}
And, in OnPlayerDisconnect and OnPlayerDeath:
pawn Код:
DisableCmds[playerid] = false;
Reply


Messages In This Thread
/dmzone? - by -Rebel Son- - 30.01.2010, 23:01
Re: /dmzone? - by LuxurioN™ - 30.01.2010, 23:11
Re: /dmzone? - by -Rebel Son- - 31.01.2010, 02:11
Re: /dmzone? - by -Rebel Son- - 31.01.2010, 02:28
Re: /dmzone? - by caribe88 - 31.01.2010, 04:36
Re: /dmzone? - by CJ101 - 31.01.2010, 04:40

Forum Jump:


Users browsing this thread: 2 Guest(s)