Jump to content

Recommended Posts

Posted

// Se poate si ceva mai bun de realizat ca exemplu putem sa facem ca adminul daca e in transport sa se teleporteze tot cu transport
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)

 

Citat

{
        {
                new vehicleid = GetPlayerVehicleID(playerid); // aflam id transportului  in care este adminul
                if(vehicleid > 0 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)  // aflam daca el este la volan
                {
                        SetVehiclePos(vehicleid, fX, fY, fZ); 
                }
                else
                {
                        SetPlayerPos(playerid, fX, fY, fZ);
                }
        }
        return 1;
}

// dupa parerea mea asa e mai bine

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.