Teleport script? - 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)
+--- Thread: Teleport script? (
/showthread.php?tid=416158)
Teleport script? -
bebothekillar - 16.02.2013
Hello, i wanna a teleport script i have one i just wanna like if someone teleport to somewhere i wanna to show like
(/sf) JimmyNeonHD (ID:0), Teleport to san Ferraro
are that's possible?
and i want to know how to make the player teleport with vehicle i can't my script like this
Quote:
{
if (strcmp("/sf", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, -1513.7695, 795.8688, 7.1875, 31.263 ;
return 1;
}
return 0;
}
|
Re: Teleport script? -
iManakoss - 16.02.2013
Код:
if (strcmp("/sf", cmdtext, true, 10) == 0)
{
new string[128];
format(string, sizeof(string), "(Teleport)Player %s has teleported to San Fierro (/sf)", NAMEGET(playerid));
SendClientMessageToAll(COLOR_WHITE,string);
SetPlayerPos(playerid, -1513.7695, 795.8688, 7.1875, 31.2638 );
return 1;
}
return 0;
}
Re: Teleport script? -
Djole1337 - 16.02.2013
pawn Код:
new
iName[MAX_PLAYER_NAME+1],
iStr[32];
GetPlayerName(playerid, iName, sizeof(iName));
format(iStr, sizeof(iStr), "%s (%i) Teleport to (/sf)", iName, playerid);
SendClientMessageToAll(-1, iStr);
Re: Teleport script? - Patrick - 16.02.2013
iManakoss i just need to corect your command here.
here is the right command
pawn Код:
if (strcmp("/sf", cmdtext, true, 10) == 0)
{
new string[128];
new pname[30];
GetPlayerName(playerid,pname,sizeof(pname));
format(string, sizeof(string), "(Teleport)Player %s(%d) has teleported to San Fierro (/sf)",pname,playerid);
SendClientMessageToAll(COLOR_WHITE,string);
SetPlayerPos(playerid, -1513.7695, 795.8688, 7.1875, 31.2638 );
return 1;
}
Re: Teleport script? -
Djole1337 - 16.02.2013
Quote:
Originally Posted by pds2012
iManakoss i just need to corect your command here.
here is the right command
pawn Код:
if (strcmp("/sf", cmdtext, true, 10) == 0) { new string[128]; new pname[128]; GetPlayerName(playerid,pname,sizeof(pname)); format(string, sizeof(string), "(Teleport)Player %s(%d) has teleported to San Fierro (/sf)",pname,playerid); SendClientMessageToAll(COLOR_WHITE,string); SetPlayerPos(playerid, -1513.7695, 795.8688, 7.1875, 31.2638 ); return 1; }
|
Player name is up to 128 chars ?
/fail