Zaključano

"Trebam nešto" - tema

Započeo Obrisan korisnik
pre 13 godina
344,003
pregleda
2,816
postova
Ova tema je zaključana. Samo moderatori i administratori mogu odgovarati.
Drmex
Wheel Man
pre 6 godina
Potreban mi je /postavilidera ali u dialogu pokusavao sam da sredim i sve to udjem u igricu izaberem org i kucam id lika i ne seta mu lidera pa ako ima neko ili ako moze da napravi molim vas.
Hazzard XD
Street Runner
pre 6 godina
Trebam /prodajsve komandu, ako ima neko, ili da ima u nekom modu da uzmem
Fariss
Street Runner
pre 6 godina
Dali neko zna gm iz kojeg se moze ovo izvuci? http://prntscr.com/qbqwrs
Nikola-.-
Kingpin
pre 6 godina
to je mysql kveri tacnije 2, @Jimmy Hendrix
Tobito
Hustler
pre 6 godina
Potrebna mi je /rac komanda ako nekom nije problem da mi je da.Pokusavao Sam da odradim Ali nece pokazuje wqening-e. gledao Sam na YT Ali nece? Pa ako moze Neko da mi odradi bio bih zahvalan.
AhmAA
Super Moderator
pre 6 godina
Tobito wrote on January 4, 2020, 5:48 pm:
Potrebna mi je /rac komanda ako nekom nije problem da mi je da.Pokusavao Sam da odradim Ali nece pokazuje wqening-e. gledao Sam na YT Ali nece? Pa ako moze Neko da mi odradi bio bih zahvalan.

Pokušaj, izvukao sa samp off foruma:
CMD:respawncars(playerid, params[])
{
    new string, radius;
    if (PlayerInfo < 3) return SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
    if(sscanf(params, "d", radius)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /respawncars ");
    if(radius < 1 || radius > 40) return endClientMessageEx(playerid, COLOR_WHITE, "Radius must be higher than 0 and lower than 41!");
   
    for(new i=0;i    {
        if(IsVehicleEmpty(i) == 1)
        {
            RespawnNearbyVehicles(playerid, radius);
            format(string, sizeof(string), "You have respawned all vehicles within a radius of %d.", radius);
            SendClientMessageEx(playerid, COLOR_GREY, string);
        }
    }
    return 1;
}

//add this where all your stock is
stock IsVehicleEmpty(vehicleid)
{
    for(new i=0; i    {
        if(IsPlayerInVehicle(i, vehicleid)) return 0;
    }
    return 1;
}

daddyDOT

Balkan SA:MP Super moderator


Balkan SA:MP

Balkan SA:MP - since 2009

Tobito
Hustler
pre 6 godina
daddy. wrote on January 4, 2020, 7:34 pm:
Pokušaj, izvukao sa samp off foruma:
CMD:respawncars(playerid, params[])
{
    new string, radius;
    if (PlayerInfo < 3) return SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
    if(sscanf(params, "d", radius)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /respawncars ");
    if(radius < 1 || radius > 40) return endClientMessageEx(playerid, COLOR_WHITE, "Radius must be higher than 0 and lower than 41!");
   
    for(new i=0;i    {
        if(IsVehicleEmpty(i) == 1)
        {
            RespawnNearbyVehicles(playerid, radius);
            format(string, sizeof(string), "You have respawned all vehicles within a radius of %d.", radius);
            SendClientMessageEx(playerid, COLOR_GREY, string);
        }
    }
    return 1;
}

//add this where all your stock is
stock IsVehicleEmpty(vehicleid)
{
    for(new i=0; i    {
        if(IsPlayerInVehicle(i, vehicleid)) return 0;
    }
    return 1;
}

Hvala  🙂
Tobito
Hustler
pre 6 godina
daddy. wrote on January 4, 2020, 7:34 pm:
Pokušaj, izvukao sa samp off foruma:
CMD:respawncars(playerid, params[])
{
    new string, radius;
    if (PlayerInfo < 3) return SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
    if(sscanf(params, "d", radius)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /respawncars ");
    if(radius < 1 || radius > 40) return endClientMessageEx(playerid, COLOR_WHITE, "Radius must be higher than 0 and lower than 41!");
   
    for(new i=0;i    {
        if(IsVehicleEmpty(i) == 1)
        {
            RespawnNearbyVehicles(playerid, radius);
            format(string, sizeof(string), "You have respawned all vehicles within a radius of %d.", radius);
            SendClientMessageEx(playerid, COLOR_GREY, string);
        }
    }
    return 1;
}

//add this where all your stock is
stock IsVehicleEmpty(vehicleid)
{
    for(new i=0; i    {
        if(IsPlayerInVehicle(i, vehicleid)) return 0;
    }
    return 1;
}

Izbacuje mi 2warninga
AhmAA
Super Moderator
pre 6 godina
A to su?

daddyDOT

Balkan SA:MP Super moderator


Balkan SA:MP

Balkan SA:MP - since 2009

Bekaksi_Brat
Enforcer
pre 6 godina
Trebam sistem dodavanja objekata na vozila ali samo teksta.
Da se samo preko skripte moze podesiti velicina slova,font i to ne preko komande ...
Kajov
Street Runner
pre 6 godina
Zna neko kako da dodam da samo vlasnik(admin 6) moze da koristi ove dve komande
YCMD:zakljucajserver(playerid, params[], help)
{
//provere
SendRconCommand("password 278"); // 278 ti je sifra,mjenjaj sebi...
SendClientMessage(playerid, 0xFF0000FF, "Uspesno ste zakljucali server!");
return 1;
}

YCMD:otkljucajserver(playerid, params[], help)
{
//provere
SendRconCommand("password 0"); // /rcon password 0 in-game cmd
SendClientMessage(playerid, 0xFF0000FF, "Uspesno ste otkljucali server!");
return 1;
}
Bryan123
Enforcer
pre 6 godina
Samo proveru prilagodi svojoj skripti
if(PI != 6) return SendClientMessage(playerid, -1, "Error: Nemate permisiju.");
Panca
Street Runner
pre 6 godina
Hocu da ubacim imanje system ali ne znam kako da napravim ako neko ima ili moze napraviti ne treba nesto puno samo da ima da se pokupe kruske jabuke i sljive i da se moze prodati... Ne treba mnogo samo jedno polje da vidim kako ide pa cu sam dodavati kasnije. I biz da se kupi imanje.... Unapred hvala
Kajov
Street Runner
pre 6 godina
Kako da fixam ovo?
C:\Users\PC\Desktop\SAN MARINO LAST VERSION (1)\SAN MARINO LAST VERSION\Server\gamemodes\SMRP.pwn(22) : fatal error 100: cannot read from file: "newsamp"
Vincenzo_Peruggia
OG Legend
pre 6 godina
Kajov wrote on January 10, 2020, 3:52 pm:
Kako da fixam ovo?
C:\Users\PC\Desktop\SAN MARINO LAST VERSION (1)\SAN MARINO LAST VERSION\Server\gamemodes\SMRP.pwn(22) : fatal error 100: cannot read from file: "newsamp"

Imas includovan fajl koji se zove newsamp ali ne postoji fajl. newsamp include ubaci u pawno/include i compile skriptu

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava