15.04.2013, 21:16
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;
}