How can i make teleports
#1

Hello,

I want to make teleports but how can ik make it?

i have this

Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/teleport", true) == 0)
{
SetPlayerPos(playerid, 2026.7900, 1354.5444, 10.8203, 84.5707);

return 1;
}

return 0;
}

But what is what in the cordinaat?


(yeah i now fucking bad english )
Reply
#2

SetPlayerPos(playerid, 2026.7900, 1354.5444, 10.8203);
x y z

That last one 84.5707 is the facting angle. Use SetPlayerFacingAngle(playerid,Float:Angle); for that.
Reply
#3

easy..
Reply
#4

Ty, great
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)