16.10.2009, 18:57
Quote:
Originally Posted by Mo3
On top..
Код:
new helpoff; Код:
helpoff = 1; Код:
if(helpoff == 1) EDIT: Sorry, didnt see the pastebin link, do it this way: Код:
new HelpActivated = 1; //forward not needed. // Command to switch off if(strcmp("/switchoffhelp", cmd, true) == 0) || if(Logged[playerid] == 1) //You forgot the || here { HelpActivated == 0); // 0 = no, 1 = yes } return 1; // Help command if(strcmp(cmd,"/help",true) == 0) { if(HelpActivated == 1) // == instead of = { SendClientMessage(playerid,COLOR_WHITE,"Help text..."); } else } SendClientMessage(playerid,COLOR_WHITE,"The help command has been desactivated"); } return 1; |