FANDOM


GetPlayerPos Edit

Ovom funkcijom uzimamo trenutnu poziciju igrača...

Parametri:

(playerid, Float:x, Float:y, Float:z)

playerid // ID igrača

Float:x // X Koordinata

Float:y // Y Koordinata

Float:z // Z Koordinata


  public OnPlayerDeath(playerid, killerid, reason)
{
    // Veribijale za čuvanje pozicije igrača
    new Float:x, Float:y, Float:z;
 
    // Koristimo GetPlayerPos za uzimanje pozicije igrača
    GetPlayerPos(playerid, x, y, z);
 
    // Kreiranje pickupa na poziciji gdje je igrač umro
    CreatePickup(1212, 4, x, y, z, GetPlayerVirtualWorld(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.