Enable/Disable commands
#1

could someone maybe help with a code so that when you teleport to somewhere, that other commands will be disabled?

i have been searching a lot so please help me!!!
Reply
#2

at the top of your script:
pawn Code:
new Teled[MAX_PLAYERS];
Add to the top of all your commands you want the player not to do:
pawn Code:
if(Teled[playerid] == 1) return SendClientMessage(playerid,COLOR,"Text...");
Add to your teleport command:
pawn Code:
Teled[playerid] = 1;
Reply
#3

thank you very much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)