Jump to content
  • 0

RepairCar


Guest jorj

Question

if(strcmp(cmd, "/repaircar", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

        if(PlayerToPoint(4.0,playerid,1587.8082,-1684.1271,6.2252))

{

    SendClientMessage(playerid, COLOR_GRAD1, "Vehicle Repaired");

    return 1;

}

if(IsPlayerInAnyVehicle(playerid))

{

    SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);

    SendClientMessage(playerid, COLOR_COMMANDS, " You are not in the garage");

}

}

return 1;

Deci aceasta comanda este innauntru la garaj lspd dar o ppoate folosi toti playeri chear daca nu sunt copi ma puteti ajuta sa fac sa foloseasca doar copi?Multumesc!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Ti-am facut-o eu doar pt cops:

   if(strcmp(cmd, "/repaircar", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
     	 if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3)
		 {
         if(PlayerToPoint(4.0,playerid,1587.8082,-1684.1271,6.2252))
         {
             SendClientMessage(playerid, COLOR_GRAD1, "Vehicle Repaired");
             return 1;
         }
         if(IsPlayerInAnyVehicle(playerid))
         {
             SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
             SendClientMessage(playerid, COLOR_COMMANDS, " You are not in the garage");
         }
      }
      return 1;
	}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.