16.06.2010, 16:06
Hey! So, now i have to make a teleport, right into those coordinates of objects:
CreateObject(8040, 3206.15625, -2486.5808105469, 2750.2436523438, 0.000000, 0.000000, 0.000000);
( its a marker i know, )
how to i tele into it, like, what are the coordinates for SetPlayerPos?
Here's the teleport command itself:
CreateObject(8040, 3206.15625, -2486.5808105469, 2750.2436523438, 0.000000, 0.000000, 0.000000);
( its a marker i know, )
how to i tele into it, like, what are the coordinates for SetPlayerPos?
Here's the teleport command itself:
pawn Код:
if(strcmp(cmdtext, "/dj", true) == 0)
{
if(DMZone[playerid] == 1) return ShowPlayerDialog(playerid,TELEWARN,DIALOG_STYLE_MSGBOX,"Error:","Teleporting Error!\n\n-Sorry But you can't Teleport to another area while in a dm. Type /kill to leave the DM.","OK","KILL ME");
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, coordshere ( how ));
GameTextForPlayer(playerid, "~y~Death Jump", 4000, 6);
ResetPlayerWeapons(playerid);
new name[MAX_PLAYER_NAME], string[100];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "[TELEPORT] %s teleported to death jump (/dj)", name );
SendClientMessageToAll(COLOR_TELEPORT, string);
return 1;
}