07.03.2010, 22:26
this is the nos script i use:
and
im guessing you can just modify that
ie change invalidnosvehicle to inflyingvehicle
change the ids in the new bit at the top
call back like so:
Код:
new InvalidNosVehicles[30] = { 581,523,462,521,463,522,461,448,468,586, 509,481,510,472,473,493,595,484,430,453, 452,446,454,590,569,537,538,539,570,449 };
Код:
forward IsPlayerInInvalidNosVehicle(playerid); public IsPlayerInInvalidNosVehicle(playerid) { new carid = GetPlayerVehicleID(playerid); new carmodel = GetVehicleModel(carid); for (new i=0; i<sizeof(InvalidNosVehicles); i++) { if (carmodel == InvalidNosVehicles[i]) return 1; } return 0; }
ie change invalidnosvehicle to inflyingvehicle
change the ids in the new bit at the top
call back like so:
Код:
if(!IsPlayerInInvalidNosVehicle(playerid)) {