Teleport 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)
+--- Thread: Teleport help (
/showthread.php?tid=364301)
Teleport help -
[SRB]Genius - 30.07.2012
Hi,i what to make command /stadium,when player type /stadium to teleport him to stadium location.Can someone tell me how to do it,and i will add my coordinats.Thnks
Re: Teleport help -
SomebodyAndMe - 30.07.2012
ZCMD:
pawn Код:
CMD:stadium(playerid, params[])
{
SetPlayerPos(playerid, coordsX,coordsY,coordsZ);
SendClientMessage(playerid, 0xFFFFFFFF, "You have been teleported to the stadium");
return 1;
}
Re: Teleport help -
mickos - 30.07.2012
Go type by ****** SA-MP interior ids, you will be see a lot of site's sith the coordinations and interior ids.
Re: Teleport help -
[SRB]Genius - 30.07.2012
I am not using ZCMD,its simple team DM script,so ZCMD not working.
Re: Teleport help -
SomebodyAndMe - 30.07.2012
pawn Код:
if(!strcmp(cmdtext, "/stadium", true))
{
SetPlayerPos(playerid, coordsX,coordsY,coordsZ);
SendClientMessage(playerid, 0xFFFFFFFF, "You have been teleported to the stadium");
}
Re: Teleport help -
[SRB]Genius - 30.07.2012
Thanks man,you helped me a lot,if it works you get rep +
Re: Teleport help -
SomebodyAndMe - 30.07.2012
Herp a derp, can't you do anything yourself?
pawn Код:
if(strcmp(cmdtext, "/stadium", true) == 0)
{
SetPlayerPos(playerid, coordsX,coordsY,coordsZ);
SendClientMessage(playerid, 0xFFFFFFFF, "You have been teleported to the stadium");
}
Re: Teleport help -
Devilxz97 - 30.07.2012
http://weedarr.wikidot.com/interior