18.02.2015, 17:52
pawn Код:
CMD:admintitle(playerid, params[])
{
static
atitle[32],
userid;
if(PlayerData[playerid][pAdmin] < 6)
return SendErrorMessage(playerid, "You don't have permission to use this command.");
if(sscanf(params, "uss[32]", userid, atitle)) {
return SendSyntaxMessage(playerid, "/admintitle [ID/Name] [Title]");
}
else format(PlayerData[userid][pAdminTitle], 32, atitle);
if (userid == INVALID_PLAYER_ID)
return SendErrorMessage(playerid, "You have specified an invalid player.");
if(PlayerData[userid][pAdmin] < 1)
return SendErrorMessage(playerid, "This player is not an administrator.");
return 1;
}