help me
#1

I have a problem in the fuel system
at any time the fuel does not just help me please

Код:
forward Gas();

SetTimer("Gas",10000, 1);

public Gas(){
for(new i=0;i<MAX_PLAYERS;i++){
new nomepl[MAX_PLAYER_NAME];
GetPlayerName(i, nomepl, sizeof(nomepl));
format(file2, sizeof(file2), Folder_Accounts, nomepl);
new vid;
vid = GetPlayerVehicleID(i);
new model;
model = GetVehicleModel(vid);
if(!(model == 509 || model == 510 || model == 481)){
new estado;
estado = GetPlayerVehicleSeat(i);
GetPlayerState(i);
if(IsPlayerInAnyVehicle(i) == 1){
if(estado == 0){
dini_IntSet(file2, "Gas", dini_Int(file2, "Gas")-1);
}
if(dini_Int(file2, "Gas") <= 0){
SendClientMessage(i, Red, "Your Petrol over, Step into the Tour but Close to Re-Fill!");
RemovePlayerFromVehicle(i);
}
}
}
}
}
Reply


Messages In This Thread
help me - by MicroSof - 15.04.2013, 19:08
Re: help me - by MicroSof - 15.04.2013, 20:57
Re: help me - by [ABK]Antonio - 15.04.2013, 21:16

Forum Jump:


Users browsing this thread: 1 Guest(s)