03.02.2013, 18:11
pawn Код:
if(strcmp(cmd, "/gov", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJob] == 77 || IsInFaction(playerid, "LSPD") || IsInFaction(playerid, "GOV") || IsInFaction(playerid, "LSFD") || IsInFaction(playerid, "NG") || IsInFaction(playerid, "FBI") || IsInFaction(playerid, "SASD") || IsInFaction(playerid, "CIA"))
{
format(string, sizeof(string),"|___________________________________Government Announcement___________________________________|");
SendClientMessage(giveplayerid, COLOR_ORANGE, string);
format(string, sizeof(string), "[%s: %s %s] %s",GetPlayerFactionName(playerid),GetPlayerRank(playerid),GetPlayerNameEx(playerid),result);
SendClientMessage(giveplayerid, COLOR_WHITE, string);
format(string, sizeof(string),"|___________________________________Government Announcement___________________________________|");
SendClientMessage(giveplayerid, COLOR_ORANGE, string);
}
}
else SendClientMessage(playerid, COLOR_GRAD1, "You can't use this command!");
return 1;
}