Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ______________________________________________________________________________________________________________
- +FUNZIONE: GotoPlayer(playerid, Float:x, Float:y, Float:z, Interior, VirtualWorld);
- +AUTORE: Killaman
- +SITO: MultiplayerArena.it
- __________________________________NOTE:
- Questa funzione è stata creata da Killaman e setta la posizione di un determinato player, l'Interior e il Virtual World. Setta queste cose anche se il player è in un determinato veicolo.
- ______________________________________________________________________________________________________________
- */
- stock GotoPlayer(playerid, Float:x, Float:y, Float:z, Interior, VirtualWorld)
- {
- if (GetPlayerState(playerid) == 2)
- {
- new
- vehicleid = GetPlayerVehicleID(playerid);
- SetVehiclePos(vehicleid, x, y, z);
- LinkVehicleToInterior(vehicleid, Interior);
- SetVehicleVirtualWorld(vehicleid, VirtualWorld);
- }
- else
- {
- SetPlayerPos(playerid, x, y, z);
- SetPlayerInterior(playerid, Interior);
- SetPlayerVirtualWorld(playerid, VirtualWorld);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment