Guyz Help me Please ! Epic Problem
#6

PHP код:
CMD:r(playeridparams[])
{
    new 
string[128];
       if(!
IsPlayerLoggedIn(playerid)) return SendClientMessage(playeridCOLOR_GREY"You need to login first before using any command.");
    if(!
IsACop(playerid) && !IsAGov(playerid) && !IsAArmy(playerid)) return SendClientMessage(playeridCOLOR_GREY"You are not an SAPD Oficer/Government Official.");
    if(
sscanf(params"s[128]"params)) return SendClientMessage(playeridCOLOR_WHITE"USAGE: (/r)adio [text]");
    if(
AntiAdv(playeridparams)) return 1;
    if(
PlayerInfo[playerid][pFacDiv]){format(stringsizeof(string), "** [%s] %s %s: %s"RPFDN(playerid), RPFRN(playerid), RPN(playerid), params);}
    else if (!
IsACop(playerid)) {format(stringsizeof(string), "** %s %s: %s"RPFRN(playerid), RPN(playerid), params);
    
SendPlayerFactionMessage(playerid0COLOR_RADIOstring);}
    else if (!
IsAGov(playerid)) {format(stringsizeof(string), "** %s %s: %s"RPFRN(playerid), RPN(playerid), params);
    
SendPlayerFactionMessage(playerid0COLOR_GREENstring);}
    else if (!
IsAArmy(playerid)) {format(stringsizeof(string), "** %s %s: %s"RPFRN(playerid), RPN(playerid), params);
    
SendPlayerFactionMessage(playerid0COLOR_ARMYstring);}
    if(
IsACop(playerid)) Log("logs/SAPD.log"string);
    else if(
IsAGov(playerid)) Log ("logs/GOV.log"string);
    else if(
IsAArmy(playerid)) Log ("logs/ARMY.log"string);
    return 
1;

TEst this and tell me if you get any errors.
Reply


Messages In This Thread
Guyz Help me Please ! Epic Problem - by Adam_Hardy - 16.08.2012, 20:28
Re: Guyz Help me Please ! Epic Problem - by Sandiel - 16.08.2012, 20:30
Re : Re: Guyz Help me Please ! Epic Problem - by Adam_Hardy - 16.08.2012, 20:44
Re: Guyz Help me Please ! Epic Problem - by TaLhA XIV - 16.08.2012, 21:15
Re : Re: Guyz Help me Please ! Epic Problem - by Adam_Hardy - 16.08.2012, 22:20
Re: Guyz Help me Please ! Epic Problem - by TaLhA XIV - 16.08.2012, 23:32
Re : Re: Guyz Help me Please ! Epic Problem - by Adam_Hardy - 17.08.2012, 00:00
Re: Guyz Help me Please ! Epic Problem - by TaLhA XIV - 17.08.2012, 00:04
Re : Guyz Help me Please ! Epic Problem - by Adam_Hardy - 17.08.2012, 01:27
Re: Guyz Help me Please ! Epic Problem - by CROSS_Hunter - 17.08.2012, 01:33

Forum Jump:


Users browsing this thread: 1 Guest(s)