How to make this script to work only at location ?
#1

How to make this to work only at any location, that i want ?
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (!strcmp("/repair", cmdtext))
    {
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle!");
        RepairVehicle(GetPlayerVehicleID(playerid));
        SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been successfully repaired!");
        return 1;
    }
}
And how to make that, when a player repair his vehicle, he must pay 100
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)