15.03.2010, 13:16
My codes:
Define:
Code:
When i start the server , when i pressin the submission key, i see no effect
Define:
Код:
#define PRESSED(%0) \ (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(PRESSED(KEY_SUBMISSION)) { new vehicleid = GetPlayerVehicleID(playerid); if(IsPlayerInVehicle(playerid, vehicleid)) { if(vehicleid == 560) { AddVehicleComponent(vehicleid, 1026); AddVehicleComponent(vehicleid, 1027); AddVehicleComponent(vehicleid, 1028); AddVehicleComponent(vehicleid, 1033); AddVehicleComponent(vehicleid, 1069); AddVehicleComponent(vehicleid, 1041); AddVehicleComponent(vehicleid, 1039); } } } return 1; }