Small job with one checkpoint!
#5

Quote:
Originally Posted by |∞|-Рцппσĵσ-|∞|
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/start", cmdtext, true, 6) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            new vehid = GetPlayerVehicleID(playerid);
            if(GetVehicleModel(vehid) == 574)
            {
                SetPlayerCheckpoint(playerid, -147.1910, 1146.1820, 19.5938, 3.0);
            }
            else SendClientMessage(playerid, COLOR, "You need to be in a sweeper, to use this command!");
        }
        else SendClientMessage(playerid, COLOR, "You need to be in a vehicle, to use this command!");
        return 1;
    }
    return 0;
}
Thank you!
A bit too advanced for me to figure at this stage of learning, but now I understand how to use SetPlayerCheckpoint, GetPlayerVehicleID and IsPlayerInAnyVehicle.
Reply


Messages In This Thread
Small job with one checkpoint! - by Anarkien - 03.07.2009, 10:15
Re: Small job with one checkpoint! - by refshal - 03.07.2009, 10:18
Re: Small job with one checkpoint! - by Anarkien - 03.07.2009, 10:31
Re: Small job with one checkpoint! - by Djiango - 03.07.2009, 10:33
Re: Small job with one checkpoint! - by Anarkien - 03.07.2009, 10:36

Forum Jump:


Users browsing this thread: 1 Guest(s)