[NeedHelp]/enter-/exit with CAR
#1

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?
Reply
#2

Anyone? ? ?
Reply
#3

what? is your objective
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)