Help with some freeroam commands
#1

i need:

Automatic Repair - but, i dont want automatic repair on whole server, just in one area (for car sumo) if it is posibly.

Nitro - i have /nitro command but when it dissapear i have to wait few minutes to activate it again


help please
Reply
#2

Use search function. There are enough scripts like this. Also you should use wiki.sa-mp.com

Anyway, for auto-repair you should use a timer, or a loop idk. Ill post the script for that later. If noone posts it. To activate nitro after its done just do the command again and you have nitro again
Reply
#3

He dont think to type /nitro, only to press left click and u get nitro, when nitro dissapear u press left click then u got nitro again. Can u help plz about this ?
Reply
#4

For the vehicle repair:
pawn Код:
public OnGameModeInit() {
    SetTimer("repair", 500, 1);
    return true;
}
After that;
pawn Код:
forward repair();
public repair() {
    for(new i; i < MAX_PLAYERS; i++) {
        if(IsPlayerConnected(i)) {
            if(IsPlayerInRangeOfPoint(i, rangehere, sumoX here, sumoY here, sumoZ here)) {
                new vehicleid = GetPlayerVehicleID(i);
                RepairVehicle(vehicleid);
            }
        }
    }
    return true;
}
Reply
#5

vidim da si iz hrvatske pa da ne pricam engleski,

Hocu da mi auto-repair bude samo u jednoj zoni a ne na celom serveru, npr samo u san fieru, kako da ogranicim tu zonu?

a za nitro mi treba da se aktivira kad pritisnem levi klik a ne da pisem komandu :S
Reply
#6

This is an English forum dude. Talk English
Reply
#7

i need nitro activiting on LMB and auto-repair just in one area( ex: just in san fiero airport)
Reply
#8

Use IsPlayerInRangeOfPoint
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)