21.02.2009, 19:43
Don't ask what was the problem in the first place
You don't want to know...
Код:
if(strcmp(cmd, "/amega", true) == 0 || strcmp(cmd, "/amegaphone", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /amega(phone) [text]");
return 1;
}
new amount;
amount = strval(tmp);
PlayerInfo[playerid][pAMega] = amount;
format(string, sizeof(string), " Your Admin Megaphone Prefix is now %d.", amount);
SendClientMessage(playerid, COLOR_GRAD1, string);
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
}
}
}

