(Help)command /FIX - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: (Help)command /FIX (
/showthread.php?tid=178153)
(Help)command /FIX -
dor_b - 20.09.2010
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
Re: (Help)command /FIX -
willsuckformoney - 20.09.2010
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;
}
Re: (Help)command /FIX -
dor_b - 20.09.2010
Thanks Thanks Thanks ! ! !
locked plz.