/o help?
#1

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/o", cmdtext, true, 10) == 0)
    {
        if(!strlen(cmdtext)) return SendClientMessage(playerid, COLOR_YELLOW, "Usage: /o [chat]");
        new str[256];
        GetPlayerName(playerid, str, sizeof(str));
        format(str, sizeof(str), "%s: %s", str, cmdtext);
        SendClientMessageToAll(COLOR_WHITE, str);
        return 1;
    }
    return 0;
I have set up gTeam and I was wandering how to make it so when the player is on PD duty and he types, E.g Hello in /o his name would be Luis_Foxx: Hello

Thanks
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: 1 Guest(s)