achat
#4

Ok. Then you have to write it like this:
PHP код:
CMD:achat(playeridparams[])
{
   if(
pInfo[playerid][AdminLevel] < 1) return SendClientMessage(playerid, -1"{FF0000}[SYSTEM ERROR]: You don't have the privilege to use that command.");
   {
       new 
string[128], name[MAX_PLAYER_NAME];
       
GetPlayerName(playeridnamesizeof (name));
       
format(stringsizeof string"{FF0000}|AdminChat| {FFFFFF}:%s: {FFFF33}%s"namestring);
       
SendMessageToAdmins(-1,string);
   }
   return 
1;
}
//at the end of the script
stock SendMessageToAdmins(color,string[])
{
    for(new 
i;i<MAX_PLAYERS;i++)
    {
        if(!
IsPlayerConnected(i) || IsPlayerNPC(i) || pInfo[i][AdminLevel] < 1)continue;
        
SendClientMessage(i,color,string);
    }
    return 
1;

- Mencent
Reply


Messages In This Thread
achat - by Glossy42O - 25.07.2015, 09:07
AW: achat - by Mencent - 25.07.2015, 09:11
Re: achat - by Glossy42O - 25.07.2015, 09:15
AW: achat - by Mencent - 25.07.2015, 09:24
Re: achat - by Roberto80 - 25.07.2015, 10:30
AW: achat - by Mencent - 25.07.2015, 10:33
Re: AW: achat - by Glossy42O - 25.07.2015, 10:44
AW: achat - by Mencent - 25.07.2015, 10:45
Re: AW: achat - by Roberto80 - 25.07.2015, 18:03
Re: achat - by TenTen - 25.07.2015, 18:05

Forum Jump:


Users browsing this thread: 2 Guest(s)