Teleport - 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: Teleport (
/showthread.php?tid=144086)
Teleport -
restless - 25.04.2010
hey could someone tel me how to creat a teleport? so i can tele another playerї? like /desert 1. i got the coords and everything but when i try and make the comand the pawn complier crashes and doesnt work untill i delet the comand..anyone help?
Re: Teleport -
IamNotKoolllll - 25.04.2010
Quote:
Originally Posted by restless
hey could someone tel me how to creat a teleport? so i can tele another playerї? like /desert 1. i got the coords and everything but when i try and make the comand the pawn complier crashes and doesnt work untill i delet the comand..anyone help?
|
/desert 1 = strtok cmds /desert1 = strcmp cmd
Re: Teleport -
restless - 25.04.2010
Quote:
Originally Posted by IamNotKoolllll
Quote:
Originally Posted by restless
hey could someone tel me how to creat a teleport? so i can tele another playerї? like /desert 1. i got the coords and everything but when i try and make the comand the pawn complier crashes and doesnt work untill i delet the comand..anyone help?
|
/desert 1 = strtok cmds /desert1 = strcmp cmd
|
but that qould mean the cmd would only work with player id 1 right? im new at this
Re: Teleport -
IamNotKoolllll - 25.04.2010
Quote:
Originally Posted by restless
Quote:
Originally Posted by IamNotKoolllll
Quote:
Originally Posted by restless
hey could someone tel me how to creat a teleport? so i can tele another playerї? like /desert 1. i got the coords and everything but when i try and make the comand the pawn complier crashes and doesnt work untill i delet the comand..anyone help?
|
/desert 1 = strtok cmds /desert1 = strcmp cmd
|
but that qould mean the cmd would only work with player id 1 right? im new at this
|
no show me what u have so far
Re: Teleport -
restless - 25.04.2010
Код:
if(strcmp(cmd,"/puente",true) == 0)
new id;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_WHITE,"USO: /puente [id]");
id = ReturnUser(tmp);
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_WHITE, "ID de jugador invalida.");
GetPlayerName(id, giveplayer, sizeof(id));
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(id, -2662.5017,1594.6340,225.7578);
GetPlayerName(id, giveplayer, sizeof(giveplayer));
return 1;
}
thats what i got... puente means bridge.i added you to msn, accept and help me from there plz? mines
forsaken_music@hotmail.com
Re: Teleport -
IamNotKoolllll - 25.04.2010
if(strcmp(cmd,"/puente",true) == 0)
SetPlayerPos(playerid, -2662.5017,1594.6340,225.757
;
return 1;
}
Re: Teleport -
restless - 25.04.2010
it keeps crashing...
Re: Teleport -
IamNotKoolllll - 25.04.2010
Quote:
Originally Posted by restless
it keeps crashing...
|
then ur screwing up sum were
Re: Teleport -
[MWR]Blood - 25.04.2010
pawn Код:
if(strcmp(cmd,"/puente",true) == 0)
{
new id;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_WHITE,"USO: /puente [id]");
id = ReturnUser(tmp);
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_WHITE, "ID de jugador invalida.");
GetPlayerName(id, giveplayer, sizeof(id));
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(id, -2662.5017,1594.6340,225.7578);
GetPlayerName(id, giveplayer, sizeof(giveplayer));
return 1;
}
Re: Teleport -
restless - 25.04.2010
alright fixt it tyvm