Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Scripter on May 09, 2011, 10:37:38 am

Title: Any way to fix it
Post by: Scripter on May 09, 2011, 10:37:38 am
Are there is any way to fix the !getcar bug just like u guys fixed !flip command
Title: Re: Any way to fix it
Post by: sseebbyy on May 09, 2011, 11:03:45 am
Flip Command [Pawn]

else if (strcmp(cmd, "!flip", true) == 0) {
           if(IsPlayerInAnyVehicle(playerid)) {
         new Float:X,Float:Y,Float:Z,Float:Angle,veh;
                        veh = GetPlayerVehicleID(playerid);
         SetVehicleHealth(GetPlayerVehicleID(playerid),1000);
         GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle);
         SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z,Angle);
                        SendClientMessage(playerid, COLOR_YELLOW, "Flipping Your Car!");
         SetVehicleToRespawn(GetPlayerVehicleID(playerid));
          RemovePlayerFromVehicle(playerid);
          SetVehiclePos(veh,X,Y,Z,Angle);
                    PutPlayerInVehicle(playerid,veh);
                  }
                else {
                    SendClientMessage(playerid,COLOR_RED,"***You are not in vehicle !");
                   }
      return 1;
   }[/pawn]

GetCar Command [Pawn]
else if(strcmp(cmd, "!getcar", true) == 0) {
      tmp = strtok(cmdtext, idx);
      new Float:X,Float:Y,Float:Z,Float:Angle;
         GetPlayerPos(playerid,X,Y,Z); GetPlayerFacingAngle(playerid,Angle);
         SetVehiclePos(strval(tmp),X+3,Y+3,Z,Angle);
         SetVehicleToRespawn(strval(tmp));
         RemovePlayerFromVehicle(playerid);
         SetVehiclePos(strval(tmp),X+3,Y+3,Z,Angle);
      return 1;
   }[/pawn]
Title: Re: Any way to fix it
Post by: Scripter on May 09, 2011, 11:31:35 am
when some one drives  car  and then we do !getcar it not works
anyway to fix that only
Title: Re: Any way to fix it
Post by: tato on May 10, 2011, 03:42:38 am
when some one drives  car  and then we do !getcar it not works
anyway to fix that only
i will try i never think about that one i just made up the !flip but not the getcar i will try ok
Title: Re: Any way to fix it
Post by: Scripter on May 10, 2011, 03:42:49 pm
when some one drives  car  and then we do !getcar it not works
anyway to fix that only
i will try i never think about that one i just made up the !flip but not the getcar i will try ok
ok