Vip car fix
#1

Код:
CMD:fixveh(playerid, params[])
{
	if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
	if(IsPlayerConnected(playerid))
	{
	    if(PlayerInfo[playerid][pPremiumAccount] < 1) return SendClientMessage(playerid, COLOR_WHITE, "Nu esti premium");
		{
    		if(IsPlayerInAnyVehicle(playerid))
		    {
			    RepairVehicle(GetPlayerVehicleID(playerid));
			    Gas[GetPlayerVehicleID(playerid)] = 100;
			    SendClientMessage(playerid, COLOR_WHITE, "Masina a fost reparata.");
		    }
		}
	}
	return 1;
}
Can you add a 30 min timer please to this command, and if a player tryes to use it and the timer isn't finished he get's a meesage with the remaining time.
Reply


Messages In This Thread
[Solved]Vip car fix - by TheDarkBlade - 02.11.2015, 12:44
Re: Vip car fix - by iKarim - 02.11.2015, 13:16
Re: Vip car fix - by TheDarkBlade - 03.11.2015, 13:50
Re: Vip car fix - by TheDarkBlade - 03.11.2015, 17:22

Forum Jump:


Users browsing this thread: 1 Guest(s)