23.03.2009, 21:55
Hey I want to set a timer for this command so when there are no admins online it will automaticly refuel every 20 minutes, I already tried it but it failed:
Timer should be set on 20 minutes and can you please add a GameText like this: ''All cars have been refueled''
It's this command:
I hope you can help me! 
Timer should be set on 20 minutes and can you please add a GameText like this: ''All cars have been refueled''
It's this command:
Код:
}
if(strcmp(cmd, "/fuelcars", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
for(new c=0;c<MAX_VEHICLES;c++)
{
Fuel[c] = GasMax;
}
SendClientMessageToAll(COLOR_ADMINCMD, "INFO: All cars refueled by an administrator.");
}
else
{
SendClientMessage(playerid, COLOR_RED, "ERROR: You are not an administrator.");
return 1;
}
}
return 1;


