Vip car fix
#3

Quote:
Originally Posted by PawnHunter
Посмотреть сообщение
PHP код:
// UNDER INCLUDES
#define TimeToReload 1800000 // 30 minutes.
new 
    
LastTickCount[MAX_PLAYERS];
// OnPlayerConnect: 
LastTickCount[playerid] = 0;
// YOUR COMMAND
CMD:fixveh(playeridparams[])
{
    if(
gPlayerLogged[playerid] == 0) return SendClientMessage(playeridCOLOR_LIGHTRED"You need to login first.");
    if(
IsPlayerConnected(playerid))
    {
        if(
PlayerInfo[playerid][pPremiumAccount] < 1) return SendClientMessage(playeridCOLOR_WHITE"Nu esti premium");
        {
            if(
IsPlayerInAnyVehicle(playerid))
            {
                if(
GetTickCount() > LastTickCount[playerid])
                {
                    
RepairVehicle(GetPlayerVehicleID(playerid));
                    
Gas[GetPlayerVehicleID(playerid)] = 100;
                    
SendClientMessage(playeridCOLOR_WHITE"Masina a fost reparata.");
                    
LastTickCount[playerid] = GetTickCount() + TimeToReload;
                }
                else return 
SendClientMessage(playeridCOLOR_WHITE"Wait 30 mins before using it again.");
            }
        }
    }
    return 
1;

the problem is that in game it tells me that the command doesen't exist
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: 2 Guest(s)