Help with /newb
#5

try this:

pawn Код:
CMD:newb(playerid,params[])
{
    new str[80];
    if(sscanf(params,"s[80]",str)) SendClientMessage(playerid,-1,"Usage : /newb [question]");
    new name[MAX_PLAYER_NAME],msg[110];
    GetPlayerName(playerid,name,20);
    format(msg,sizeof(msg),"[HELP NEEDED]%s(%d) : %s",name,playerid,str);
    for(new i=0;i<MAX_PLAYERS;++i)
    {
        if(IsPlayerConnected(i) && PlayerInfo[i][Admin] >= 1) || IsPlayerAdmin(i))
        SendClientMessage(i,-1,msg);
    }
    SendClientMessage(playerid,-1, "Question sent, admins will respond as soon as possible");

    return 1;
}
then just let the admins pm the player
Reply


Messages In This Thread
Help with /newb - by Ghost110 - 27.01.2015, 04:40
Re: Help with /newb - by TheRaGeLord - 27.01.2015, 06:17
Re: Help with /newb - by Ghost110 - 27.01.2015, 06:17
Re: Help with /newb - by ATGOggy - 27.01.2015, 06:21
Re: Help with /newb - by 1fret - 27.01.2015, 06:32

Forum Jump:


Users browsing this thread: 1 Guest(s)