help fast please!
#3

Try this:
PHP Code:
CMD:asay(playerid,params[]) 

    new 
string[128], message[128]; 
    if(
AdminLevel[playerid] < 1) return SCM(playerid,COLOR_WHITE,"{AFAFAF}[Error]: {FFFFFF}You do not have the correct admin level for this command."); 
    if(
sscanf(params,"s[128]",id,message)) 
    { 
        
SendClientMessage(playerid,COLOR_WHITE""COL_USAGE"[SYNTAX] {FFFFFF}/asay [MESSAGE]"); 
        return 
1
    } 
     
format(string,sizeof(string),""COL_ADMIN"[ADMIN] {FFFFFF}%s",message); 
      
SendClientMessageToAll(COLOR_WHITE,string); 
       
format(string,sizeof(string),"%s(%d) has used /asay",PlayerName(playerid),playerid); 
     
SendALogMessage(string); 
      return 
1

Reply


Messages In This Thread
help fast please! - by aCloudy - 29.01.2015, 14:19
Re: help fast please! - by aCloudy - 29.01.2015, 14:28
Re: help fast please! - by ATGOggy - 29.01.2015, 14:33
Re: help fast please! - by KayJ - 29.01.2015, 14:34

Forum Jump:


Users browsing this thread: 1 Guest(s)