SA-MP Forums Archive
CMD 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: CMD help? (/showthread.php?tid=465839)



CMD help? - Chiao - 24.09.2013

Hello can someone help me make a zcmd that when I type /alounge I get tped there please?
This is where I want the location to be :/
Код:
AddPlayerClass(290,493.3492,-22.2997,1000.6797,5.6401,0,0,0,0,0,0); // spawnpoint
Please help me out guys


Re: CMD help? - XStormiest - 24.09.2013

pawn Код:
SetPlayerPos(playerid, 493.3492,-22.2997,1000.6797);
  SetPlayerFacingAngle(playerid,  5.6401);
these are the functions
and now the command
pawn Код:
CMD:alounge(playerid, params[])
{
   SetPlayerPos(playerid, 493.3492,-22.2997,1000.6797);
   SetPlayerFacingAngle(playerid,  5.6401);
   return 1;
}