need help
#5

Use this.

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate==PLAYER_STATE_DRIVER)
    {
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 592)
        {
            if(GetPlayerScore(playerid) >= 500)
            {
                SendClientMessage(playerid, COLOR_YELLOW,"Welcome To Andromanda!");
                return 1;
            }
            else
            {
                SendClientMessage(playerid, COLOR_YELLOW,"You Need Atleast 500 Score To Enter Andromanda!");

                new string[128];
                format(string, sizeof(string), "Your Flight Score is: %i",GetPlayerScore(playerid));
                SendClientMessage(playerid, COLOR_YELLOW, string);
                return 1;
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
need help - by rs2fun111 - 03.01.2010, 21:48
Re: need help - by Backwardsman97 - 03.01.2010, 21:52
Re: need help - by rs2fun111 - 03.01.2010, 21:53
Re: need help - by rs2fun111 - 03.01.2010, 22:06
Re: need help - by Backwardsman97 - 03.01.2010, 23:27

Forum Jump:


Users browsing this thread: 4 Guest(s)