/asay command help?
#1

Hi, I'm a really noob, I've tried to do this but I'm not very good. This is the code I have so far

PHP код:
CMD:asay(playeridparams[])
{
    new 
tmp[256], playername[25], tmp2[256],string[256];
    if (
adlvl[playerid] < 1) return 0;
    if (
sscanf(params"s[128]"tmp)) return SendClientMessage2(playeridCOLOR_WHITE"Usage: /asay [message]");
    
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
    
format(tmp2sizeof(tmp2), "say %s"tmp);
    
format(stringsizeof(string), "* Administrator: %s"tmp);
    
SendClientMessageToAll(COL_LEVEL1string);
     else
    {
        if(
adlvl[playerid] < 2) return 0;
        
SendClientMessageToAll(COL_LEVEL2string);
    else
    {
        if(
adlvl[playerid] < 3) return 0;
        
SendClientMessageToAll(COL_LEVEL3string);
    else
    {
        if(
adlvl[playerid] < 4) return 0;
        
SendClientMessageToAll(COL_LEVEL4string);
    if (
adminuc[playerid] == 0)
    {
        
format(string128"Admin Log: [asay] %s: %s."playernametmp);
        
SendMessageToAdmins(COLOR_ADMINstring);
    }
    
printf("[asay] %s: %s"playernametmp);
    return 
1;

If you could be so kind to go into detail about what you are doing to fix this. Would be very greatful.

As all ways who ever helps +1 Rep

Thanks for your time.
Reply


Messages In This Thread
/asay command help? - by Tass007 - 03.02.2016, 04:22
Re: /asay command help? - by Zamora - 03.02.2016, 04:58
Re: /asay command help? - by Tass007 - 03.02.2016, 05:06
Re: /asay command help? - by Zamora - 03.02.2016, 05:22
Re: /asay command help? - by Tass007 - 03.02.2016, 05:31

Forum Jump:


Users browsing this thread: 3 Guest(s)