Jump to content

Question

Posted

Salutari...Ma puteti ajuta cu 2 lucruri?

1.Cum fac ca atunci cand un player intra intr-o masina,sa il blocheze in ea?

2.Cum fac ca daca un player intra intr-o anumita zona sa il respawneze

3 answers to this question

Recommended Posts

Posted

1.

public OnPlayerEnterVehicle( playerid, vehicleid )
{
    TogglePlayerControllable( playerid, false );
    return 1;
}
http://wiki.sa-mp.com/wiki/OnPlayerEnterVehicle http://wiki.sa-mp.com/wiki/TogglePlayerControllable 2.
public OnPlayerUpdate( playerid )
{
    if( IsPlayerInRangeOfPoint( playerid, RANGE, X, Y, Z ) ) SpawnPlayer( playerid );
    return 1;
}

http://wiki.sa-mp.com/wiki/IsPlayerInRangeOfPoint

http://wiki.sa-mp.com/wiki/OnPlayerUpdate

http://wiki.sa-mp.com/wiki/SpawnPlayer

Posted

Foloseste OnPlayerStateChange pentru a detecta daca un jucator ii asezat intr-o masina.

Daca folosesti OnPlayerEnterVehicle, il poti ingheta cand ii langa masina, si nu cand ii in ea.

Posted

Stunt man,merge,dar se blocheaza cand este langa masina,eu vreau sa se blocheze cand este in masina

Deci eu vreau ca la masinile personale (cele cu /v buy necumparate) sa te blochezi in ele,am pus la IsAnOwnableCar,dar te blochezi si in cele cumparate,iar la /v buy am pus TogglePlayerControllable(playerid,1); , cum pot face ca doar la cele necumparate sa se blocheze?

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.