Need help with announce command
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/announce", true))
    {
        if(APlayerData[playerid][PlayerLevel] >= 5)
        {
            if(strlen(cmdtext) < 10)
            {
                return 1;
            }
            new gText[128];
            format(gText, sizeof(gText), "%s", cmdtext[10]);
            GameTextForAll(gText, 5000, 3);
        }
    }
    return 1;
}
you dont have 2 put ; at last of an if ... and you have to make the APlayerData enum variable
Reply


Messages In This Thread
Need help with announce command - by SomebodyAndMe - 14.04.2011, 12:09
Re: Need help with announce command - by iJumbo - 14.04.2011, 12:26
Re: Need help with announce command - by SomebodyAndMe - 14.04.2011, 12:29
Re: Need help with announce command - by iJumbo - 14.04.2011, 12:31
Re: Need help with announce command - by SomebodyAndMe - 14.04.2011, 12:33
Re: Need help with announce command - by iJumbo - 14.04.2011, 12:37
Re: Need help with announce command - by SomebodyAndMe - 14.04.2011, 12:56
Re: Need help with announce command - by iJumbo - 14.04.2011, 12:58
Re: Need help with announce command - by SomebodyAndMe - 14.04.2011, 13:00
Re: Need help with announce command - by Seven_of_Nine - 14.04.2011, 13:42

Forum Jump:


Users browsing this thread: 2 Guest(s)