public OnPlayerCommandText(playerid, cmdtext[]) { { if(PlayerData[playerid][Muted] == 1) { NMC(playerid,"[ NOTICE ] You are still muted !"); return 0; } if(PlayerData[playerid][CmdDisabled] == 1) { NMC(playerid,"[ NOTICE ] Your commands are still disabled !"); return 0; } if(PlayerData[playerid][Jailed] == 1) { if(PlayerData[playerid][Level] >= 4) { return 1; }
if(PlayerData[playerid][Jailed] == 1) { if(PlayerData[playerid][Level] >= 4) { return 1; <========= Its already one but no working,neither if cmds are disabled and I did if(ServerData[CmdDisabledAll] == 1 && PlayerData[playerid][Level] >= 4) { return 1;} but still not working :/ }
if(PlayerData[playerid][Muted] == 1) { NMC(playerid,"[ NOTICE ] You are still muted !"); return 0; }
Originally Posted by Flo_White
This (
Код:
if(PlayerData[playerid][Muted] == 1) { NMC(playerid,"[ NOTICE ] You are still muted !"); return 0; } |
if(PlayerData[playerid][Level] < 4)
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[]) { { if(PlayerData[playerid][Muted] == 1) { NMC(playerid,"[ NOTICE ] You are still muted !"); return 0; } if(PlayerData[playerid][CmdDisabled] == 1) { NMC(playerid,"[ NOTICE ] Your commands are still disabled !"); return 0; } if(PlayerData[playerid][Jailed] == 1) { if(PlayerData[playerid][Level] >= 4) { return 1; } NMC(playerid,"[ NOTICE ] Commands are not allowed injail !"); return 0; } if(ServerData[CmdDisabledAll] == 1) { if(PlayerData[playerid][Loggined] == 0) { return 1; } NMC(playerid,"[ NOTICE ] Server has disabled all commands !"); return 0; } if(ServerData[ViewCmds] == 1) { new pname[MAX_PLAYER_NAME],string[100]; GetPlayerName(playerid,pname,sizeof(pname)); format(string,sizeof(string),"[ ViewCmd ] %s used the command %s",pname,cmdtext); ToAdmins45(string); } dcmd(register,8,cmdtext);