#1

I want to create a command that repairs your vehicle, but I have issues with the timer.

PHP код:
CMD:repairmycar(playeridparams[])
{
    if(!
IsPlayerInAnyVehicle(playerid))
        return 
SendErrorMessage(playerid"You are not in a vehicle!");
        
    if(
GetPlayerState(playerid) != 2)
        return 
SendErrorMessage(playerid"You are not in the driver seat!");
        
    if(
IsPlayerInRangeOfPoint(playerid6.0, -2417.77442303.79791.8781))
        return 
SendErrorMessage(playerid"You should be in range of the point to /repairmycar !");
        
    
SendClientMessage(playeridCOLOR_WHITE"Your vehicle will be ready in one hour (1 minute).");
    
GivePlayerMoney(playerid, - 200);
        
    
RepairVehicle(GetPlayerVehicleID(playerid));  
    return 
1;

I need help with kicking the player out of the vehicle and make the vehicle respawn after 1 minute. Thanks in advance.
Reply


Messages In This Thread
Hey - by BluePlayBG - 11.01.2018, 16:31
Re: Hey - by RogueDrifter - 11.01.2018, 17:18

Forum Jump:


Users browsing this thread: 1 Guest(s)