13.10.2014, 18:13
Код:
#define PRESSED(%0) \ (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (PRESSED(KEY_YES)) { new vid = GetPlayerVehicleID(playerid); new Float:hp; GetVehicleHealth(vid, hp); if(vid == 425 && vid == 520 && hp < 251) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); SetPlayerPos(playerid, X, Y , Z + 40); SendClientMessage(playerid, RED, "Ejected!"); } } return 1; }