24.06.2010, 14:28
pawn Код:
if(strcmp(cmd, "/ahelp", true) == 0 || strcmp(cmd, "/ah", true) == 0) // By CuervO_NegrO
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this Command!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GREY, "USAGE: /(ah)elp [level]");
SendClientMessage(playerid, COLOR_GREY, "LEVELS: 1, 2, 3, 4, 5, 6");
return 1;
}
new level = strval(tmp);
if (level == 1) // i would like this to be gang so u dont have to type /ah 1, but instead u would have to do /ah gang
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
SendClientMessage(playerid, COLOR_WHITE, "---------------------------------------------------- Trial Moderator ----------------------------------------------------");
SendClientMessage(playerid, COLOR_GRAD1, "/check /setint /setvw /mute /kick /masked /(un)freeze");
SendClientMessage(playerid, COLOR_GRAD1, "/slap /kill /messages /admin /nick /freeze /(un)warn /jailed ");
SendClientMessage(playerid, COLOR_GRAD1, "/muted /frozen /warned /(ao)cc /ajail /checkweapons");
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are not Level 1!");
return 1;
}
}