02.12.2009, 10:53
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(adminlevel[playerid] < 1) return 0; else if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_BRIGHTRED, "You have to be in a vehicle to type 2."); else if ((newkeys & KEY_SUBMISSION)) /// This will add 10x NOS to the car and repair it if player is in a car. AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); 4086 = RepairVehicle(GetPlayerVehicleID(playerid)); SetVehicleHealth(GetPlayerVehicleID(playerid), 1000.0); return 1; }
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.