20.09.2010, 19:31
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
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