10.05.2014, 09:38
Hello i need this commands convert to zcmd
Code:
public OnPlayerCommandReceived(playerid, cmdtext[]) { //-------------------------------------------------------------------------- if(GetPVarInt(playerid, "PlayerInDM") == 1 || GetPVarInt(playerid, "PlayerInRace") == 1 || GetPVarInt(playerid, "PlayerInGifts") == 1) { //---------------------------------------------------------------------- if(strcmp(cmdtext, "/leave", true ) == 0) return 0; if(strcmp(cmdtext, "/ad", true ) == 0) return 0; if(strcmp(cmdtext, "/myskin", true ) == 0) return 0; if(strcmp(cmdtext, "/cmds", true ) == 0) return 0; if(strcmp(cmdtext, "/skin", true ) == 0) return 0; //---------------------------------------------------------------------- else GameTextForPlayer(playerid, "~w~Use ~r~/Leave~w~ to leave!", 6000, 4); return 1; } //-------------------------------------------------------------------------- if(GetPVarInt(playerid, "Jailed") == 1) { SendClientMessage(playerid, red, "ERROR: You cannot use commands in Jail!"); return 1; } //-------------------------------------------------------------------------- else return 0; }