#7

PHP код:
CMD:ask(playeridparams[])
{
    new 
text[128]; //Variable text
    
new string[256];
    new 
Name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridNamesizeof(Name));
        
//You need sscanf2 include, sscanf plugin.
    
if(sscanf(params"s[128]"text)) return SendClientMessage(playerid, -1"USAGE: /ask [text]");
    for(new 
i=0;i<MAX_PLAYERS;i++)
        {
        if(
PlayerInfo[i][pAdmin] >= || IsPlayerAdmin(i))
        {
        
format(stringsizeof(string),"Player %s asks %s"Nametext);
        
SendClientMessage(i, -1string);
        }
    }
    return 
1;

Reply


Messages In This Thread
/ask - by DerickClark - 10.01.2013, 02:13
Re: /ask - by mastermax7777 - 10.01.2013, 03:16
Re: /ask - by DerickClark - 10.01.2013, 03:49
Re: /ask - by Skyrise - 10.01.2013, 03:56
Re: /ask - by ThePhenix - 10.01.2013, 04:04
Re: /ask - by Skyrise - 10.01.2013, 04:06
Re: /ask - by ThePhenix - 10.01.2013, 04:16
Re: /ask - by DerickClark - 10.01.2013, 04:24
Re: /ask - by Skyrise - 10.01.2013, 04:43

Forum Jump:


Users browsing this thread: 1 Guest(s)