help me with this cmd
#1

i created this /me command
PHP код:
CMD:me(playeridparams[])
{
    new 
tmp[256], playername[25];
    if (
sscanf(params"s[128]"tmp)) return SendClientMessage2(playeridCOLOR_WHITE"Usage: /me [message]");
    
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
    for (new 
0PLAYERSi++)
    {
        if(
dini_Int(AddDirFile(dir_userfilesplayername), "RPName")==0)
        {
            if (
IsPlayerConnected2(i) && PlayerIgnored[i][playerid] == 0SendPlayerFormattedText(iCOLOR_GREEN"%s %s"playernametmp);
        }
        else
        {
            if (
IsPlayerConnected2(i) && PlayerIgnored[i][playerid] == 0SendPlayerFormattedText(iCOLOR_GREEN"%s %s"dini_Get(AddDirFile(dir_userfilesplayername), "RolePName"), tmp);
        }
    }
    
printf("[me] %s (Id%d) %s"playernameplayeridtmp);
    return 
1;

i want to add anti advert in this cmd if anyone type * GoldenMan server ip he get kicked

advanced thnx
Reply


Messages In This Thread
help me with this cmd - by GoldenMan - 07.09.2017, 12:27
Re: help me with this cmd - by GoldenMan - 07.09.2017, 15:17
Re: help me with this cmd - by n00blek - 07.09.2017, 15:22
Re: help me with this cmd - by Meller - 07.09.2017, 15:34

Forum Jump:


Users browsing this thread: 1 Guest(s)