Simple commands
#4

Hey, you missed the COLOR off the SendClientMessage(playerid, COLOR, "LOL");

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/kill", cmdtext, true, 10) == 0)
    {
        SetPlayerHealth(playerid, 0);
        return 1;
    }
    if (strcmp("/help", cmdtext, true, 10) == 0)
    {
        SendClientMessage(playerid, RED, "Welcome To Draguto Server ") ;
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
Simple commands - by SonOussi - 21.01.2013, 17:31
Re: Simple commands - by Jeffry - 21.01.2013, 17:35
Re: Simple commands - by SonOussi - 21.01.2013, 17:36
Re: Simple commands - by azzerking - 21.01.2013, 17:37
Re: Simple commands - by Private200 - 21.01.2013, 20:05

Forum Jump:


Users browsing this thread: 2 Guest(s)