[Include] Teleport functions. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (
https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Teleport functions. (
/showthread.php?tid=185604)
Teleport functions. -
[WSF]ThA_Devil - 25.10.2010
One day i was bored and i made teleport functions
so....
natives:
pawn Код:
native SetVehicleVpos(playerid, carid, Float:X, Float:Y, Float:Z, Float:ZA, Virtual, Interior);
native SetPlayerVpos(playerid, Float:X, Float:Y, Float:Z, Float:ZA, Virtual, Interior);
This is my first include......
And i added Object loader if your map loads slow....
pawn Код:
LoadObjects(playerid); and LoadedObjects(playerid);
but.... if you have dm slow loading than use:
pawn Код:
LoadDmObjects(playerid); and LoadedDmObjects(playerid);
tuturial:
pawn Код:
if(!strcmp(cmdtext, "/carmiddle", true))
{
LoadObjects(playerid);
new carid = GetPlayerVehicleID(playerid);
SetVehicleVpos(playerid, carid, 0.0, 0.0, 6.0, 0, 1, 1);
}
return 1;
}
or when you are on foot:
pawn Код:
if(!strcmp(cmdtext, "/middle", true))
{
LoadObjects(playerid);
SetPlayerVpos(playerid, 0.0, 0.0, 6.0, 0, 1, 1);
}
return 1;
}
Re: Teleport functions. -
iJumbo - 25.10.2010
hehe nice
Re: Teleport functions. -
[WSF]ThA_Devil - 25.10.2010
thanks
Re: Teleport functions. -
The_Moddler - 25.10.2010
Nice hehe
Re: Teleport functions. -
[WSF]ThA_Devil - 26.10.2010
Rly thanx xD
It's just my first include....
Re: Teleport functions. -
[WSF]ThA_Devil - 31.10.2010
*bump*