[HELP]How to Teleport Vech while in it - 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: [HELP]How to Teleport Vech while in it (
/showthread.php?tid=88800)
[HELP]How to Teleport Vech while in it -
[DD]FlameOFDeath - 28.07.2009
I have a command but i want the car to teleport with the person how do i do this also so they can tele without car all i got is this
Код:
{
if( !strcmp(cmdtext,"/Drift1",true ))
{
SetPlayerPos(playerid, -274.9351,1535.3416,75.3594);
SendClientMessage(playerid,COLOR_GREEN, "Welcome To drift1");
return 1;
i tryed to do it
Код:
if( !strcmp(cmdtext,"/Drift1",true ))
{
SetPlayerPos(playerid, -274.9351,1535.3416,75.3594);
SetVehiclePos(araba, -274.9351,1535.3416,75.3594);
PutPlayerInVehicle(playerid,araba,0);
TogglePlayerControllable(playerid,1);
SendClientMessage(playerid,COLOR_GREEN, "Welcome To drift1");
return 1;
}
but i got error's
Код:
C:\Users\Caz\Desktop\sampDDRST.win32\gamemodes\lvdm.pwn(153) : error 017: undefined symbol "araba"
C:\Users\Caz\Desktop\sampDDRST.win32\gamemodes\lvdm.pwn(154) : error 017: undefined symbol "araba"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Thank you who comment And Helped
and how dose it work so i can do it for the rest of my 15 teleports i made
Re: [HELP]How to Teleport Vech while in it -
[DD]FlameOFDeath - 28.07.2009
I need Help Badly Sorry About Dubble Post
Re: [HELP]How to Teleport Vech while in it -
miceiken - 28.07.2009
pawn Код:
if( !strcmp(cmdtext,"/Drift1",true ))
{
if (IsPlayerInAnyVehicle(playerid))
{
new vid = GetPlayerVehicle(playerid);
SetVehiclePos(vid, -274.9351,1535.3416,75.3594);
}
else
{
SetPlayerPos(playerid, -274.9351,1535.3416,75.3594);
}
SendClientMessage(playerid,COLOR_GREEN, "Welcome To drift1");
return 1;
}
Re: [HELP]How to Teleport Vech while in it -
[DD]FlameOFDeath - 28.07.2009
Код:
C:\Users\Caz\Desktop\sampDDRST.win32\gamemodes\lvdm.pwn(154) : error 017: undefined symbol "GetPlayerVehicle"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: [HELP]How to Teleport Vech while in it -
miceiken - 28.07.2009
Typo, but goddamn use your brain a bit.
It's GetPlayerVehicleID.