25.10.2010, 12:33
(
Последний раз редактировалось [WSF]ThA_Devil; 25.10.2010 в 12:57.
)
One day i was bored and i made teleport functions
so....
natives:
This is my first include......
And i added Object loader if your map loads slow....
but.... if you have dm slow loading than use:
tuturial:
or when you are on foot:
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);
And i added Object loader if your map loads slow....
pawn Код:
LoadObjects(playerid); and LoadedObjects(playerid);
pawn Код:
LoadDmObjects(playerid); and LoadedDmObjects(playerid);
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;
}
pawn Код:
if(!strcmp(cmdtext, "/middle", true))
{
LoadObjects(playerid);
SetPlayerVpos(playerid, 0.0, 0.0, 6.0, 0, 1, 1);
}
return 1;
}