16.12.2013, 22:11
you can improve this, like:
anyway good job for a beginner scripter
pawn Код:
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;
}