Hot to create a tele - 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: Hot to create a tele (
/showthread.php?tid=360614)
Hot to create a tele -
MarkzD - 18.07.2012
Ho to create a teleport?
Re: Hot to create a tele -
Andi_Evandy - 18.07.2012
You can use "SetPlayerPos"
(Basic) to do that.
More Information here:
https://sampwiki.blast.hk/wiki/SetPlayerPos
Tutorial:
https://sampforum.blast.hk/showthread.php?tid=230341
Re: Hot to create a tele -
MarkzD - 18.07.2012
Thnx!
Re: Hot to create a tele -
MarkzD - 18.07.2012
C:\Users\Ìàêñ\Desktop\Swm.pwn(30

: warning 209: function "OnPlayerCommandText" should return a value
wtf?
public OnPlayerCommandText(playerid, cmdtext[])
if((strcmp("/stunt1", cmdtext, true) == 0) || (strcmp("/stunt", cmdtext, true) == 0))
{
SetPlayerPos(playerid, 2066.0442,-2608.5068, 13.5469);
SetPlayerFacingAngle(playerid, 180);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 14, 1);
SetPlayerVirtualWorld(playerid, 5);
SendClientMessage(playerid, 0x00FFFFAA, "You have been teleported to Stunt 1.");
return 1;
}
Re: Hot to create a tele -
IstuntmanI - 18.07.2012
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if((strcmp("/stunt1", cmdtext, true) == 0) || (strcmp("/stunt", cmdtext, true) == 0))
{
SetPlayerPos(playerid, 2066.0442,-2608.5068, 13.5469);
SetPlayerFacingAngle(playerid, 180);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 14, 1);
SetPlayerVirtualWorld(playerid, 5);
SendClientMessage(playerid, 0x00FFFFAA, "You have been teleported to Stunt 1.");
return 1;
}
return 0;
}
Look on other scripts, don't start questions like these...