Me again, need help! - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Me again, need help! (
/showthread.php?tid=155005)
Me again, need help! -
Crezy-Boy - 16.06.2010
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:
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;
}
Re: Me again, need help! -
MadeMan - 16.06.2010
Код:
CreateObject(8040, 3206.15625, -2486.5808105469, 2750.2436523438, 0.000000, 0.000000, 0.000000);
Coordinates are:
Код:
3206.15625, -2486.5808105469, 2750.2436523438
Re: Me again, need help! -
Bomber - 16.06.2010
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, 3206.15625, -2486.5808105469, 2750.2436523438);
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;
}
_____________________
Btw, mu vana XSv2 GM ?
Re: Me again, need help! -
Crezy-Boy - 16.06.2010
No estonian here, but command copied, if i will make /credits, you'll get some of it