Jump to content
  • 0

o mica problema la o comanda


rBcollo

Question

salutari am si eu comanda /fixveh si cand o folosesc,in loc sa repare masina cu zgarieturi etc,mi-o da la 1000 health,dar tot are usi zgariate etc...va rog sa ma ajutati si pe mine

Comanda fixveh este aceasta:

	if(strcmp(cmd, "/fixveh", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(PlayerInfo[playerid][pAdmin] < 4)
			{
			    SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command!");
			    return 1;
			}
			if(IsPlayerInAnyVehicle(playerid))
			{
			    SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
			    SendClientMessage(playerid, COLOR_GREY, "   Vehicle Fixed !");
			    GetPlayerName(playerid, sendername, sizeof(sendername));
   			    format(string, sizeof(string), "AdmWarning: Admin %s has fixveh Vehicle.",sendername);
      		    ABroadCast(COLOR_YELLOW, string, 1);
			}
		}
		return 1;
	}

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Incearco pe asta

[	if(strcmp(cmd, "/fixveh", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if(PlayerInfo[playerid][pAdmin] < 4)
			{
			    SendClientMessage(playerid, COLOR_GRAD1, "Nu esti autorizat!");
			    return 1;
			}
			if(IsPlayerInAnyVehicle(playerid))
			{
			    SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0);
			    RepairVehicle(GetPlayerVehicleID(playerid));
			    SendClientMessage(playerid, COLOR_GREY, "Masina a fost reparata !");
			}
		}
		return 1;
	}/code]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.