repair cmd? - 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)
+--- Thread: repair cmd? (
/showthread.php?tid=288879)
repair cmd? -
niels44 - 09.10.2011
can someone make a sort of cmd that u press 2 and that ur car is repaired? xd i dont know how to make it but if its kind of cmd i use still strcmp so if u have to make kind of cmd use that pls xd
niels
Re: repair cmd? -
aRoach - 09.10.2011
pawn Код:
public OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
{
if( newkey == KEY_SUBMISSON ) return RepairVehicle( playerid );
return 1;
}
Now when you will press 2(
KEY_SUBMISSION ) your car will be repaired....
Re: repair cmd? -
TheLonelyBeast - 09.10.2011
Oh you got help already
Re: repair cmd? -
niels44 - 09.10.2011
hey it still not working bro when i press 2 it isnt working how to fix this?
Re: repair cmd? -
[MWR]Blood - 09.10.2011
pawn Код:
if( newkeys & KEY_SUBMISSON ) return RepairVehicle( GetPlayerVehicleID(playerid) );
Re: repair cmd? -
aRoach - 09.10.2011
Quote:
Originally Posted by [MWR]Blood
pawn Код:
if( newkeys & KEY_SUBMISSON ) return RepairVehicle( GetPlayerVehicleID(playerid) );
|
Thx BLOOD, my fool...