PDA

View Full Version : repair cmd?


niels44
09/10/2011, 12:46 PM
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

aRoach
09/10/2011, 12:50 PM
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....

TheLonelyBeast
09/10/2011, 12:52 PM
Oh you got help already

niels44
09/10/2011, 01:30 PM
hey it still not working bro when i press 2 it isnt working how to fix this?

[MWR]Blood
09/10/2011, 01:33 PM
if( newkeys & KEY_SUBMISSON ) return RepairVehicle( GetPlayerVehicleID(playerid) );

aRoach
09/10/2011, 02:16 PM
Blood;1450739']
if( newkeys & KEY_SUBMISSON ) return RepairVehicle( GetPlayerVehicleID(playerid) );


Thx BLOOD, my fool...