SA-MP Forums Archive
[NeedHelp]/enter-/exit with 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: [NeedHelp]/enter-/exit with CAR (/showthread.php?tid=161983)



[NeedHelp]/enter-/exit with CAR - Carrera - 21.07.2010

Hy i try to make to i can enter and /exit in to some SPACE whit this


PHP код:
    //enter
    
if(strcmp(cmdtext"/enter"true) == 0)
    {
    if(
PlayerInfo[playerid][pMember] >= || PlayerInfo[playerid][pLeader] >= 1)
       {
         if 
PlayerToPoint(5,playerid,1811.9972,-1310.2609,13.8875)
         *
then
         
{
         new 
tmpcar GetPlayerVehicleID(playerid);
         
SetVehiclePos(tmpcar1820.2412,-1310.0238,-2.7739);
         
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
         
SetPlayerPos(playerid,1820.2412,-1310.0238,-2.7739);
         
SetPlayerInterior(playerid,0);
         
SendClientMessage(playerid,COLOR_1GREEN,"*** TuneGarage!");
        }
        }
        return 
1;
        }
    
// exit
    
if(strcmp(cmdtext"/exit"true) == 0)
    {
    if(
PlayerInfo[playerid][pMember] >= || PlayerInfo[playerid][pLeader] >= 1)
       {
         if 
PlayerToPoint(5,playerid,1820.2412,-1310.0238,-2.7739)
         *
then
         
{
         new 
tmpcar GetPlayerVehicleID(playerid);
         
SetVehiclePos(tmpcar1811.9972,-1310.2609,13.8875);
         
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
         
SetPlayerPos(playerid,1811.9972,-1310.2609,13.8875);
         
SetPlayerInterior(playerid,0);
         
SendClientMessage(playerid,COLOR_1GREEN,"***City!");
        }
        }
        return 
1;
        } 
Plzz help FAST?


Re: [NeedHelp]/enter-/exit with CAR - Carrera - 21.07.2010

Anyone? ? ?


Re: [NeedHelp]/enter-/exit with CAR - Kar - 21.07.2010

what? is your objective


Re: [NeedHelp]/enter-/exit with CAR - John_F - 21.07.2010

Try removing the player from the vehicle, then TP both the player and the vehicle to the location then set the vehicle of the player back to the vehicle.