pawn Код:
COMMAND:setcompany(playerid, params[])
{
if(PlayerInfo[pInfo][pAdmin] < 3) return SendClientMessage(playerid, 0xFFFFFFFF, "* y u no Admin");
new giveplayerid, company, string[64];
if (sscanf(params, "ud", giveplayerid, company)) return SendClientMessage(playerid, 0xFF0000AA, "Usage: /setcompany [playerid/partname] [companyid]");
else if (giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, "Player not found");
format(string,sizeof(string), "You have successfully set the company id to %i.",company);
SendClientMessage(playerid, 0x00FF00AA, string);
format(string,sizeof(string), "You have been added to company: %i.",company);
SendClientMessage(giveplayerid, 0x00FF00AA, string);
Faction[giveplayerid] = company;
return 1;
}