08.06.2015, 06:26
Quote:
I know this but i need how to make disable/enable command that enables/disables players from TP to you
|
Код:
new notp; // top of your script
Код:
if(notp == 1) { SendClientMessage(playerid, COL_RED, "/goto cmd has been Disabled by Admins");// choose your own color variables and message its just as Example. } else // your code here
Код:
CMD:gos(playerid, params[]) // again just an example { if(notp == 0) { notp =1; SendClientMessage(playerid, COL_EERROR, "You have Enabled /goto command"); // Just an example } else if(notp == 1) { notp = 0; SendClientMessage(playerid, COL_EERROR, "You have Disabled /goto command"); // Just an example } return 1; }