Pm from admin
#2

Let me know if this works! Don't forget to define COLOR_LIGHTGREEN if you haven't done it already.

PHP код:
#define COLOR_LIGHTGREEN 0x7CFC00AA
if(strcmp(cmd"/apm"true) == 0)
{
    if(
IsPlayerLuxAdmin(playerid))
    {
        new 
idstring[128];
        if(
sscanf(params"us[128]"idstring))
        {return 
SendClientMessage(playeridCOLOR_WHITE"USAGE: /apm [playerid] [message]");}
        else if(!
IsPlayerConnected(id))
        {return 
SendClientMessage(playeridCOLOR_WHITE"ERROR: Invalid Player ID");}
        else
        {
            new 
str[128];
            
format(strsizeof(str), "[PMFROMADMIN]: %s"string);
            
SendClientMessage(idCOLOR_LIGHTGREENstr);
        }
    }else{return 
SendClientMessage(playeridCOLOR_WHITE"ERROR: You're not an Administrator");}

Reply


Messages In This Thread
Pm from admin - by xTURBOx - 30.08.2015, 06:15
Re: Pm from admin - by JordanZaundd - 30.08.2015, 06:40
Re: Pm from admin - by Mariciuc223 - 30.08.2015, 06:43
Re: Pm from admin - by Logofero - 30.08.2015, 06:47
Re: Pm from admin - by Mariciuc223 - 30.08.2015, 06:53
Re: Pm from admin - by Logofero - 30.08.2015, 06:59
Re: Pm from admin - by Infinity - 30.08.2015, 08:02
Re: Pm from admin - by Mariciuc223 - 30.08.2015, 08:50
Re: Pm from admin - by Arastair - 30.08.2015, 09:52
Re: Pm from admin - by IceBilizard - 30.08.2015, 10:41

Forum Jump:


Users browsing this thread: 2 Guest(s)