help me
#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


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)