"Trebam nešto" - tema

Započeo vlado_plavsic, Avgust 16, 2012, 20:15:55 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

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.
Pozdrav svima.

Citat: Tobito poslato Januar 04, 2020, 18:48:09 POSLE PODNE
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[128], radius;
    if (PlayerInfo[playerid][pAdmin] < 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 [radius]");
    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<MAX_VEHICLES;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<MAX_PLAYERS; i++)
    {
        if(IsPlayerInVehicle(i, vehicleid)) return 0;
    }
    return 1;
}

Citat: daddy. poslato Januar 04, 2020, 20:34:32 POSLE PODNE
Pokušaj, izvukao sa samp off foruma:
CMD:respawncars(playerid, params[])
{
    new string[128], radius;
    if (PlayerInfo[playerid][pAdmin] < 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 [radius]");
    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<MAX_VEHICLES;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<MAX_PLAYERS; i++)
    {
        if(IsPlayerInVehicle(i, vehicleid)) return 0;
    }
    return 1;
}

Hvala  :)
Pozdrav svima.

Citat: daddy. poslato Januar 04, 2020, 20:34:32 POSLE PODNE
Pokušaj, izvukao sa samp off foruma:
CMD:respawncars(playerid, params[])
{
    new string[128], radius;
    if (PlayerInfo[playerid][pAdmin] < 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 [radius]");
    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<MAX_VEHICLES;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<MAX_PLAYERS; i++)
    {
        if(IsPlayerInVehicle(i, vehicleid)) return 0;
    }
    return 1;
}

Izbacuje mi 2warninga
Pozdrav svima.


...

*

Trebam sistem dodavanja objekata na vozila ali samo teksta.
Da se samo preko skripte moze podesiti velicina slova,font i to ne preko komande ...

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;
}

Samo proveru prilagodi svojoj skripti
[pawn]if(PI[playerid][Admin] != 6) return SendClientMessage(playerid, -1, "Error: Nemate permisiju.");[/pawn]

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

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"

Citat: Kajov poslato Januar 10, 2020, 16:52:32 POSLE PODNE
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



Treba mi sistem robanja banke. Kada igrac opljacka da mu da vrecu sa novcem i checkpoint u organizaciji u koji treba da stane i pare da odu u sef. Ko zna nek napise.

Trebam citavu komandu /oprema i da kada imate opremu takodje da je mozete maknuti i da dobijete prosli skin
Takodje trebam kada zavrsim posao da me izbaci iz vozila i da se to vozilo repsawna
Hvala unaprijed