All pastes #411274 Raw Edit

Untitled

public cpp v1 · immutable
#411274 ·published 2007-03-26 22:22 UTC
rendered paste body
/***    Gasoline Inc by Pixels^*    Inc is not for sale**/#if defined _gas_included  #endinput#endif#define MAX_VEHICLE 255new Gas[MAX_VEHICLE];stock xGas_SetGas(vehicleid,amount) {	return Gas[vehicleid] = amount;}native xGas_SetGas(vehicleid,amount);stock xGas_GetGas(vehicleid) {	return Gas[vehicleid];}native xGas_GetGas(vehicleid);stock xGas_SetAllGas(amount) {	for(new v=0; v<MAX_VEHICLE; v++) {		Gas[v] = amount;	}	return 1;}native xGas_SetAllGas(amount);stock xGas_ShowGas(vehicleid) {	new string[76];	return format(string,sizeof(string),"%d",Gas[vehicleid]);}native xGas_ShowGas(vehicleid);stock xGas_Deplete(vehicleid) {	return Gas[vehicleid]--;}native xGas_Deplete(vehicleid);stock xGas_Add(vehicleid) {	return Gas[vehicleid]++;}native xGas_Fuel(vehicleid);