02.09.2013, 16:46
PHP код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
if(GetVehicleModel(vehicleid) == 487 || GetVehicleModel(vehicleid) == 488 || GetVehicleModel(vehicleid) == 497) // These are the IDs of all the Maverick (helicopter) types.
{
// Make a command to check what weapons the player is holding based on your script.
ResetPlayerWeapons(playerid);
// Give the player his weapons back.
}
return 1;
}