why wont this work ?
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/overload"))
    {
        if(IsPlayerInRangeOfPoint(playerid, 10.0, 1286, 836.40002441406, 4.9000000953674))
        {
            SetPlayerWantedLevel( playerid, 2 );// change to what you like
            GameTextForPlayer(playerid, "~r~YOU ARE OVERLOADED~n~~g~AVOID THE POLICE", 3000, 3);//change to what you want between the ""
            PlayCrimeReportForPlayer(playerid, playerid, 16);
        }
        else
        {
            SendClientMessage(playerid, COLOR_WHITE, "You are not on a weigh bridge");
        }
    }
    return 1;
}
You just had your brackets a little mixed up, format your code properly and it's easier to see.
Reply


Messages In This Thread
why wont this work ? - by [LHT]Bally - 24.09.2011, 22:06
Re: why wont this work ? - by Redgie - 24.09.2011, 22:09
Re: why wont this work ? - by [LHT]Bally - 24.09.2011, 22:10
Re: why wont this work ? - by Redgie - 24.09.2011, 22:11

Forum Jump:


Users browsing this thread: 1 Guest(s)