(Help)command /FIX
#1

Hey everyone,

My name is dor, i am new in this erea

ok, i need help command /FIX.

I created a command fix the car, but I need the command to repair the vehicle in appearance.

the command is:

if(strcmp("/Fix", cmdtext, true) == 0)
{
if(Fix[playerid]==1)return SendClientMessage(playerid,0xDDDD2357,"blah blah blah");
if(!IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,0xAFAFAFAA," blah blah blah");
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleid, 1000.0);
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, 0xFFFF00AA, "blah blah blah");
Fix[playerid]=1;
return 1;
}

hope you help,
thanks, Dor
Reply
#2

pawn Код:
if(strcmp("/Fix", cmdtext, true) == 0)
{
if(Fix[playerid]==1)return SendClientMessage(playerid,0xDDDD2357,"blah blah blah");
if(!IsPlayerInAnyVehicle(playerid))return SendClientMessage(playerid,0xAFAFAFAA,"Your not in a car.");
new vehicleid = GetPlayerVehicleID(playerid);
RepairVehicle(vehicleid);
SendClientMessage(playerid, 0xFFFF00AA, "Vehicle Repaired.");
Fix[playerid]=1;
return 1;
}
Reply
#3

Thanks Thanks Thanks ! ! !
locked plz.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)