[REQUEST]/vr command
#1

i want a /vr command that the car is fixed,
i have one but then the health comes to 100%
but the car is damaged from the outside
i want that the car fully fixed and not only damage but the outside to!
Reply
#2

wrong section but here

pawn Код:
if(strcmp(cmd, "/vr", true) ==0 || strcmp(cmd, "/arepair", true) ==0)
    {
      if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 101)
        {
          if(IsPlayerInAnyVehicle(playerid))
        {
        RepairVehicle(GetPlayerVehicleID(playerid));
            SendClientMessage(playerid, COLOR_GREY, "* Vehicle fixed!");
          }
        }
        else
        {
          SendClientMessage(playerid, COLOR_GREY, "You are not allowed to use this command.");
        }
        return 1;
    }
Reply
#3

Quote:
Originally Posted by radi
wrong section but here

pawn Код:
if(strcmp(cmd, "/vr", true) ==0 || strcmp(cmd, "/arepair", true) ==0)
    {
      if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 101)
        {
          if(IsPlayerInAnyVehicle(playerid))
        {
        RepairVehicle(GetPlayerVehicleID(playerid));
            SendClientMessage(playerid, COLOR_GREY, "* Vehicle fixed!");
          }
        }
        else
        {
          SendClientMessage(playerid, COLOR_GREY, "You are not allowed to use this command.");
        }
        return 1;
    }
Lol, copy&paste is easy yeah.

pawn Код:
if(strcmp(cmd, "/vr", true) == 0)
{
   if(IsPlayerInAnyVehicle(playerid))
   {
      RepairVehicle(GetPlayerVehicleID(playerid));
   }
   return 1;
}
Reply
#4

Quote:
Originally Posted by Karlip
Quote:
Originally Posted by radi
wrong section but here

pawn Код:
if(strcmp(cmd, "/vr", true) ==0 || strcmp(cmd, "/arepair", true) ==0)
    {
      if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 101)
        {
          if(IsPlayerInAnyVehicle(playerid))
        {
        RepairVehicle(GetPlayerVehicleID(playerid));
            SendClientMessage(playerid, COLOR_GREY, "* Vehicle fixed!");
          }
        }
        else
        {
          SendClientMessage(playerid, COLOR_GREY, "You are not allowed to use this command.");
        }
        return 1;
    }
Lol, copy&paste is easy yeah.

pawn Код:
if(strcmp(cmd, "/vr", true) == 0)
{
   if(IsPlayerInAnyVehicle(playerid))
   {
      RepairVehicle(GetPlayerVehicleID(playerid));
   }
   return 1;
}
RepairVehicle callback must be added, I guess. Or is it already on SA-MP?

EDIT : Sorry, my mistake, it's already on SA-MP xDDD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)