/o help?
#4

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp("/o", cmdtext, true, 2))
    {
        new str[128];
        GetPlayerName(playerid, str, sizeof(str));
        format(str, sizeof(str), "%s", cmdtext[2]);
        SendPlayerMessageToAll(playerid, str);
        return 1;
    }
    return 0;
}
Okay it works now but I want it to say this, "Usage: /o [Message]" if the Player only types /o?
Reply


Messages In This Thread
/o help? - by Luis- - 07.10.2010, 16:41
Re: /o help? - by miokie - 07.10.2010, 17:22
Re: /o help? - by Scenario - 07.10.2010, 17:31
Re: /o help? - by Luis- - 07.10.2010, 18:32
Re: /o help? - by Mike_Peterson - 07.10.2010, 19:06
Re: /o help? - by Scenario - 07.10.2010, 21:00

Forum Jump:


Users browsing this thread: 2 Guest(s)