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
#2

Someone? please
Reply
#3

pawn Код:
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 model;
        model = GetVehicleModel(GetPlayerVehicleID(i));
        if(model != 509 && model != 510 && model != 481)
        {

            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);
            }
        }
    }
    return 1;
}
Not sure what you're trying to do, what doesn't it do?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)