Author Topic: Any way to fix it  (Read 2789 times)

0 Members and 1 Guest are viewing this topic.

Offline Scripter

  • Wiseguy
  • **
  • Posts: 62
    • View Profile
Any way to fix it
« 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

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: Any way to fix it
« Reply #1 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]
« Last Edit: May 09, 2011, 11:06:39 am by sseebbyy »

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline Scripter

  • Wiseguy
  • **
  • Posts: 62
    • View Profile
Re: Any way to fix it
« Reply #2 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

Offline tato

  • Made Man
  • ***
  • Posts: 106
  • I bet u don't know me!
    • View Profile
    • EA Server
Re: Any way to fix it
« Reply #3 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

Offline Scripter

  • Wiseguy
  • **
  • Posts: 62
    • View Profile
Re: Any way to fix it
« Reply #4 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