[Include] Teleport functions.
#1

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;
}
Reply
#2

hehe nice
Reply
#3

thanks
Reply
#4

Nice hehe
Reply
#5

Rly thanx xD It's just my first include....
Reply
#6

*bump*
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)