14.01.2012, 08:27
pawn Код:
COMMAND:load(playerid,vehicleid, params[])
{
new id = GetPlayerVehicleID(playerid);
/*new
Float:x,
Float:y,
Float:z;*/ // Uncomment if you need it.
if(GetVehicleModel(id) == 476) // Removed previous conditional statement as there was no need for it.
{
// GetPlayerPos(playerid,x,y,z); // Uncomment if you need it.
VehicleFire[id] = 0;
AddVehicleMissiles(id,2.0,-1.05,0.0); // Since this checks if VehicleFire = 0, set the value of VehicleFire before you call it.
}
return 1;
}