SA-MP Forums Archive
Teleport to Certain car - 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 to Certain car (/showthread.php?tid=92444)



Teleport to Certain car - mini-d - 20.08.2009

Ive tried to get this to work i havnt scripted and few months so i fogot a lot well heres the code that wont work

Код:
  if(strcmp(cmdtext, "/dgride", true, 6) == 0) {
    bombcarpos =    GetVehiclePos(bombcar10);
    SetPlayerPos(playerid,bombcarpos);
    return 1;
  }



Re: Teleport to Certain car - Backwardsman97 - 20.08.2009

pawn Код:
if(strcmp(cmdtext, "/dgride", true) == 0)
{
   new Float:x,Float:y,Float:z;
   GetVehiclePos(bombcar10,x,y,z);
   SetPlayerPos(playerid,x,y,z);
   return 1;
}



Re: Teleport to Certain car - mini-d - 20.08.2009

thanks a lot