23.03.2014, 14:04
pawn Код:
CMD:r(playerid, params[])
{
if(PlayerInfo[playerid][pFaction] == 1 || PlayerInfo[playerid][pFaction] == 2)
{
new string[128], text[70];
if(sscanf(params, "s[70]", text)) return ShowInfoForPlayer(playerid, "~r~Error:~w~ /r [text]", 5000);
format(string, sizeof(string), "(Radio) ** %s %s: %s", GetFactionRank(playerid), GetPlayerNameEx(playerid), text);
SendClientMessageToLSPD(COLOR_BLUE, string);
}
else ShowInfoForPlayer(playerid, "~r~Error:~w~ You're not in a Law Enforcement Faction.", 5000);
return 1;
}