FANDOM


Ovaj callback se poziva kada igrac pristupi vec odredjenom odredistu.

Parametri Edit

(playerid)
playerid - ID igraca koji pristupa odredistu
Return - Ovaj callback ne zahteva return

Primer Edit

public OnPlayerSpawn(playerid) //pri spawnu namestamo odrediste
{
    SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 3.0);
    return 1;
}
 
public OnPlayerEnterCheckpoint(playerid)
{
    CreateVehicle(520, 1982.6150, -221.0145, -0.2432, 82.2873, -1, -1, 60000); //kada dodje na odrediste marker se brise i igrac dobija vozilo.
    DisablePlayerCheckpoint(playerid);
    return 1;
}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.