"Trebam nešto" - tema

Započeo Vasic, Jun 15, 2020, 09:33:02 PRE PODNE

prethodna tema - sledeća tema

0 članova i 4 gostiju pregledaju ovu temu.

Citat: alennaki poslato Oktobar 22, 2021, 19:33:58 POSLE PODNE
da bas to
Timer, promjenjive i u statsu igraca tj enumu dodati pAPoeni ili slicno
SPEED HACK (C++) https://github.com/nouddy/samp-speed-hack
Reliant GameMode (open.mp) https://github.com/nouddy/reliant-omp
SA:MP Landing Page https://github.com/nouddy/samp-landing-page


Kolko drama ima u 7 grama


[quote author=@ Lukq link=topic=136541.msg1012700#msg1012700 date=1635250719]
kako da napravim ic i ooc chat?
[/quote]
evo ti ooc

ProxDetector mozes koristiti i u OnPlayerText za normalni chat koji ima radius :D
[pawn]
ProxDetector(Float:radi, playerid, string[],color)
{
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    foreach(Player,i)
    {
        if(IsPlayerInRangeOfPoint(i,radi,x,y,z))
        {
            SendClientMessage(i,color,string);
        }
    }
}
[/pawn]

[pawn]
CMD:b(playerid, params[])
{
   new string[128], text[100];
   if(sscanf(params, "s[100]", text)) return SendClientMessage(playerid, 0x1874CDFF, "Nisi uneo text!");
   format(string, sizeof(string), ""PLAVA"%s | "BELA"%s", ImeIgraca(playerid), text);
   ProxDetector(30.0, playerid, string, 0x1874CDFF);
   return 1;
}
[/pawn]
SPEED HACK (C++) https://github.com/nouddy/samp-speed-hack
Reliant GameMode (open.mp) https://github.com/nouddy/reliant-omp
SA:MP Landing Page https://github.com/nouddy/samp-landing-page


Kolko drama ima u 7 grama

Citat: ᴅ ɪ ɴ ᴏ poslato Oktobar 26, 2021, 14:21:02 POSLE PODNE
evo ti ooc

ProxDetector mozes koristiti i u OnPlayerText za normalni chat koji ima radius :D
[pawn]
ProxDetector(Float:radi, playerid, string[],color)
{
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    foreach(Player,i)
    {
        if(IsPlayerInRangeOfPoint(i,radi,x,y,z))
        {
            SendClientMessage(i,color,string);
        }
    }
}
[/pawn]

[pawn]
CMD:b(playerid, params[])
{
   new string[128], text[100];
   if(sscanf(params, "s[100]", text)) return SendClientMessage(playerid, 0x1874CDFF, "Nisi uneo text!");
   format(string, sizeof(string), ""PLAVA"%s | "BELA"%s", ImeIgraca(playerid), text);
   ProxDetector(30.0, playerid, string, 0x1874CDFF);
   return 1;
}
[/pawn]

C:\Users\User\Pictures\Serveri\Japam Rol3play\Japan Gaming v1.0.0 by Lukq\gamemodes\ElegantDM.pwn(841) : error 017: undefined symbol "ImeIgraca"
C:\Users\User\Pictures\Serveri\Japam Rol3play\Japan Gaming v1.0.0 by Lukq\gamemodes\ElegantDM.pwn(842) : error 017: undefined symbol "ProxDetector"

kako da to rijesim

stock ImeIgraca(playerid)
{
   new playerime[MAX_PLAYER_NAME];
   GetPlayerName(playerid, playerime, sizeof(playerime));
   return playerime;
}

probaj staviti stock ProxDetector
SPEED HACK (C++) https://github.com/nouddy/samp-speed-hack
Reliant GameMode (open.mp) https://github.com/nouddy/reliant-omp
SA:MP Landing Page https://github.com/nouddy/samp-landing-page


Kolko drama ima u 7 grama

Citat: ᴅ ɪ ɴ ᴏ poslato Oktobar 26, 2021, 14:44:54 POSLE PODNE
stock ImeIgraca(playerid)
{
   new playerime[MAX_PLAYER_NAME];
   GetPlayerName(playerid, playerime, sizeof(playerime));
   return playerime;
}

probaj staviti stock ProxDetector

sve sam napravio i kada ukucam /b nesto, samo pise da komanda ne postoji... a kada ukucam samo /b pise da nisam nista unjeo



Ne znam vijeruj  mi, evo cika galardo gleda temu mozda ti on objasni
SPEED HACK (C++) https://github.com/nouddy/samp-speed-hack
Reliant GameMode (open.mp) https://github.com/nouddy/reliant-omp
SA:MP Landing Page https://github.com/nouddy/samp-landing-page


Kolko drama ima u 7 grama

Imam problem u vezi filterscripte za mape ubacim kod mape na OnPlayerConnect, nema nikakvih errora nista server ucita tu filterscriptu ali kad udjem niti ubaci objekte niti ih obrise. Izvinite ako sam pogresio sa temom pokusao sam razne nacine nista ne radi

imam problem sa create3dtext label, znaci napravim sve bez ikakvih errora/warninga to usput izgleda ovako [pawn]Create3DTextLabel("Welcome to the Sleepy DM\n \nScript by Lukq\n \nSince: 2021", 0x00FF0000, -1661.9524,20.2302,178.5404, 50.0, 0, 0);[/pawn] i ne vidim sta bi moglo biti pogresno... s tim da prvobitna pozicija koju sam dobio prilikom saveanja izgleda ovako [pawn]AddPlayerClass(3,1721.7991,-1661.9524,20.2302,178.5404,0,0,0,0,0,0); // 3dlabel[/pawn] ne znam u cemu bi mogao biti problem, osim ako sam izvukao pogresne kordinate jer sam tek pocetnik : 3

[quote author=@ Lukq link=topic=136541.msg1012731#msg1012731 date=1635271564]
imam problem sa create3dtext label, znaci napravim sve bez ikakvih errora/warninga to usput izgleda ovako [pawn]Create3DTextLabel("Welcome to the Sleepy DM\n \nScript by Lukq\n \nSince: 2021", 0x00FF0000, -1661.9524,20.2302,178.5404, 50.0, 0, 0);[/pawn] i ne vidim sta bi moglo biti pogresno... s tim da prvobitna pozicija koju sam dobio prilikom saveanja izgleda ovako [pawn]AddPlayerClass(3,1721.7991,-1661.9524,20.2302,178.5404,0,0,0,0,0,0); // 3dlabel[/pawn] ne znam u cemu bi mogao biti problem, osim ako sam izvukao pogresne kordinate jer sam tek pocetnik : 3
[/quote]
imam problem za koji vam necu reci sta je problem

[quote author=@ Lukq link=topic=136541.msg1012731#msg1012731 date=1635271564]
imam problem sa create3dtext label, znaci napravim sve bez ikakvih errora/warninga to usput izgleda ovako [pawn]Create3DTextLabel("Welcome to the Sleepy DM\n \nScript by Lukq\n \nSince: 2021", 0x00FF0000, -1661.9524,20.2302,178.5404, 50.0, 0, 0);[/pawn] i ne vidim sta bi moglo biti pogresno... s tim da prvobitna pozicija koju sam dobio prilikom saveanja izgleda ovako [pawn]AddPlayerClass(3,1721.7991,-1661.9524,20.2302,178.5404,0,0,0,0,0,0); // 3dlabel[/pawn] ne znam u cemu bi mogao biti problem, osim ako sam izvukao pogresne kordinate jer sam tek pocetnik : 3
[/quote]
https://sampwiki.blast.hk/wiki/Create3DTextLabel
https://sampwiki.blast.hk/wiki/AddPlayerClass
[pawn]Create3DTextLabel("Welcome to the Sleepy DM\n \nScript by Lukq\n \nSince: 2021", 0x00FF0000, 1721.7991, -1661.9524, 20.2302, 50.0, 0, 0);[/pawn]

kako da napravim label iznad nicka za admine?

[quote author=@ Lukq link=topic=136541.msg1012760#msg1012760 date=1635321378]
kako da napravim label iznad nicka za admine?
[/quote]
prvo ides new Text3D:admin1[MAX_PLAYERS];
Zatim na OnPlayerConnect
if(PlayerInfo[playerid][pAdmin] >= 1) // postavis da li hoces svi admini ili za svaki level posebno da ti pise
{
    admin1[playerid] = Create3DTextLabel("Sta hoces da ti pise", Boja, 30.0, 40.0, 50.0, 40.0 , 0);
    Attach3DTextLabelToPlayer(admin1[playerid], playerid, 0.0, 0.0, 0.3);
}
Ovo ti je da ga kazemo gotov kod ako zatreba nesto javi