Repair Command Problem
#8

Still not working

EDIT: These are the new codes :

pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

forward Repair_CMD(playerid);

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Test");
    print("--------------------------------------\n");
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/repair", cmdtext, true, 10) == 0)
    {
            if(!IsPlayerInAnyVehicle(playerid))
            return SendClientMessage(playerid, 0xFF0000FF, "You are not in a vehicle!"); // Let the player know he's not inside a vehicle and let the server know that this was a valid command
            // Fully repair the vehicle (damage value and bodywork)
            SetTimerEx("Repair_CMD", 15000, true, "i", playerid);
            SendClientMessage(playerid, 0xFF9900AA, "Assistance called . Your vehicle will be repaired in 1 minutes");
//          RepairVehicle(GetPlayerVehicleID(playerid));
            // Send the player a message to inform him that his vehicle has been repaired
//          SendClientMessage(playerid, 0x00FF00FF, "Your vehicle has been successfully repaired!");
            return 1;
    }
    return 0;
}

public Repair_CMD()
{
          new playerid;
          RepairVehicle(GetPlayerVehicleID(playerid));
          // Send the player a message to inform him that his vehicle has been repaired
          SendClientMessage(playerid, 0x00FF00FF, "Your vehicle has been successfully repaired!");
          return 1;
}
FIXED !
Reply


Messages In This Thread
Repair Command Problem - by Private200 - 20.01.2013, 20:01
Re: Repair Command Problem - by Mr.Anonymous - 20.01.2013, 20:03
Re: Repair Command Problem - by Patrick - 20.01.2013, 20:05
Re: Repair Command Problem - by SilverKiller - 20.01.2013, 20:06
Re: Repair Command Problem - by Roach_ - 20.01.2013, 20:10
Re: Repair Command Problem - by Private200 - 20.01.2013, 20:15
Re: Repair Command Problem - by Roach_ - 20.01.2013, 20:19
Re: Repair Command Problem - by Private200 - 20.01.2013, 20:27
Re: Repair Command Problem - by SuperViper - 20.01.2013, 20:45
Re: Repair Command Problem - by Jewell - 21.01.2013, 01:50

Forum Jump:


Users browsing this thread: 2 Guest(s)