COMMAND:acmds(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_RED,"Error: You have to be admin or you are not high level enoguh in order to use this command!");
else if(PlayerInfo[playerid][pAdmin] == 1) return SendClientMessage(playerid, COLOR_RED, "Level 1: /kick - /armour - /health - /camera - /freeze - /unfreeze - /skin - /slap");
else if(PlayerInfo[playerid][pAdmin] == 2)
{
SendClientMessage(playerid, COLOR_RED, "Level 1: /kick - /armour - /health - /camera - /freeze - /unfreeze - /skin - /slap");
SendClientMessage(playerid, COLOR_RED, "Level 2: /get - /goto - /ban - /announce - /givecar");
}
else if(PlayerInfo[playerid][pAdmin] == 3)
{
SendClientMessage(playerid, COLOR_RED, "Level 1: /kick - /armour - /health - /camera - /freeze - /unfreeze - /skin - /slap");
SendClientMessage(playerid, COLOR_RED, "Level 2: /get - /goto - /ban - /announce - /givecar");
SendClientMessage(playerid, COLOR_RED, "Level 3: /givegun - /kickall - /resetguns");
}
else if(PlayerInfo[playerid][pAdmin] == 4)
{
SendClientMessage(playerid, COLOR_RED, "Level 1: /kick - /armour - /health - /camera - /freeze - /unfreeze - /skin - /slap");
SendClientMessage(playerid, COLOR_RED, "Level 2: /get - /goto - /ban - /announce - /givecar");
SendClientMessage(playerid, COLOR_RED, "Level 3: /givegun - /kickall - /resetguns");
SendClientMessage(playerid, COLOR_RED, "Level 4: /setlevel");
}
return 1;
}
COMMAND:acmds(playerid)
{
if(PlayerInfo[playerid][pAdmin] < 1)
return SendClientMessage(playerid, COLOR_RED,"Error: You have to be admin or you are not high level enoguh in order to use this command!");
switch(PlayerInfo[playerid][pAdmin])
{
case 1:
SendClientMessage(playerid, COLOR_RED, "Level 1: /kick - /armour - /health - /camera - /freeze - /unfreeze - /skin - /slap");
case 2:
{
SendClientMessage(playerid, COLOR_RED, "Level 1: /kick - /armour - /health - /camera - /freeze - /unfreeze - /skin - /slap");
SendClientMessage(playerid, COLOR_RED, "Level 2: /get - /goto - /ban - /announce - /givecar");
}
case 3:
{
SendClientMessage(playerid, COLOR_RED, "Level 1: /kick - /armour - /health - /camera - /freeze - /unfreeze - /skin - /slap");
SendClientMessage(playerid, COLOR_RED, "Level 2: /get - /goto - /ban - /announce - /givecar");
SendClientMessage(playerid, COLOR_RED, "Level 3: /givegun - /kickall - /resetguns");
}
case 4:
{
SendClientMessage(playerid, COLOR_RED, "Level 1: /kick - /armour - /health - /camera - /freeze - /unfreeze - /skin - /slap");
SendClientMessage(playerid, COLOR_RED, "Level 2: /get - /goto - /ban - /announce - /givecar");
SendClientMessage(playerid, COLOR_RED, "Level 3: /givegun - /kickall - /resetguns");
SendClientMessage(playerid, COLOR_RED, "Level 4: /setlevel");
}
}
return 1;
}
@PT: I think that there wont be any difference of performance on both commands, isn't it?
@Team_PRO & @Gen3i: Thank you. |
@PT: I think that there wont be any difference of performance on both commands, isn't it?
|