"Trebam nešto" - tema

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

prethodna tema - sledeća tema

Lavić E. i 8 gostiju pregledaju ovu temu.

Citat: Linsco poslato Oktobar 24, 2017, 20:37:36 POSLE PODNE
Citat: Sploxs poslato Oktobar 24, 2017, 17:44:36 POSLE PODNE
Citat: Vasca poslato Oktobar 24, 2017, 17:30:31 POSLE PODNE
Izinjavam Se Evo vam Slike

Slikae: https://imgur.com/a/nrQGx
Ne kozes slati poruku igracu nakon return 1;
Postavi SendClientMessage iznad return 1;
I zatvori kod sa }
I linija sa if ti nije dobra.
[pawn]if(PlayerInfo[playerid][pAdmin] < 6) return SendClientMessage(playerid, -1, "Nisi ovlasten.");[/pawn]

Sta nabijas postove lol?

Citat: Sploxs poslato Oktobar 24, 2017, 20:42:07 POSLE PODNE
Citat: Linsco poslato Oktobar 24, 2017, 20:37:36 POSLE PODNE
Citat: Sploxs poslato Oktobar 24, 2017, 17:44:36 POSLE PODNE
Citat: Vasca poslato Oktobar 24, 2017, 17:30:31 POSLE PODNE
Izinjavam Se Evo vam Slike

Slikae: https://imgur.com/a/nrQGx
Ne kozes slati poruku igracu nakon return 1;
Postavi SendClientMessage iznad return 1;
I zatvori kod sa }
I linija sa if ti nije dobra.
[pawn]if(PlayerInfo[playerid][pAdmin] < 6) return SendClientMessage(playerid, -1, "Nisi ovlasten.");[/pawn]

Sta nabijas postove lol?
Jel te zvao neko?

Citat: Adal poslato Oktobar 22, 2017, 18:31:16 POSLE PODNE
Treba mi nargila sistem!
Ako neko moze da mi napravi ili posalje kod za pawno
Samo odi u FilterSkripte i Include i tu ces nauci od Paula :)

Banka_TD[playerid] = CreatePlayerTextDraw(playerid, 502.500000, 100.240020, "Banka: ~w~20000$");
PlayerTextDrawLetterSize(playerid, Banka_TD[playerid], 0.235498, 1.275200);
PlayerTextDrawAlignment(playerid, Banka_TD[playerid], 1);
PlayerTextDrawColor(playerid, Banka_TD[playerid], -5963521);
PlayerTextDrawSetShadow(playerid, Banka_TD[playerid], 0);
PlayerTextDrawSetOutline(playerid, Banka_TD[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Banka_TD[playerid], 255);
PlayerTextDrawFont(playerid, Banka_TD[playerid], 2);
PlayerTextDrawSetProportional(playerid, Banka_TD[playerid], 1);

Kako da mi prikaze tj da formatiram za prikazivanje novca ..Ovako mi stoji da imam 20k a imam dosta vise

Citat: Mevlo Kapić poslato Oktobar 25, 2017, 16:47:09 POSLE PODNE
Banka_TD[playerid] = CreatePlayerTextDraw(playerid, 502.500000, 100.240020, "Banka: ~w~20000$");
PlayerTextDrawLetterSize(playerid, Banka_TD[playerid], 0.235498, 1.275200);
PlayerTextDrawAlignment(playerid, Banka_TD[playerid], 1);
PlayerTextDrawColor(playerid, Banka_TD[playerid], -5963521);
PlayerTextDrawSetShadow(playerid, Banka_TD[playerid], 0);
PlayerTextDrawSetOutline(playerid, Banka_TD[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, Banka_TD[playerid], 255);
PlayerTextDrawFont(playerid, Banka_TD[playerid], 2);
PlayerTextDrawSetProportional(playerid, Banka_TD[playerid], 1);

Kako da mi prikaze tj da formatiram za prikazivanje novca ..Ovako mi stoji da imam 20k a imam dosta vise
Napravis funkciju za dodavanje novca i oduzimanje novca(stavis to u jednu funkciju). I nju koristis kroz celu skriptu. I kada dodas/oduzmes novac igracu formatiras string i postavis string.
[pawn]
format(string, sizeof string, "Banka: ~w~%d$", IgracevaBanka[playerid]);
PlayerTextDrawSetString(playerid, Banka_TD[playerid], string);
[/pawn]

http://wiki.sa-mp.com/wiki/PlayerTextDrawSetString
Poslednja Izmena: Oktobar 28, 2017, 12:20:42 POSLE PODNE od Wiruspwns


“Without requirements or design, programming is the art of adding bugs to an empty text file.” - Louis Srygley


Citat: OmeRRR poslato Oktobar 28, 2017, 14:04:24 POSLE PODNE
Trebami neki Brzinometar na foru plave boje (https://imgur.com/ftGCAgm)
Uradi textdraw i posalji mi i uradicu ti xD

Facebook - Klik




Citat: OmeRRR poslato Oktobar 28, 2017, 14:16:03 POSLE PODNE
Citat: Shomy Script poslato Oktobar 28, 2017, 14:11:32 POSLE PODNE
Citat: OmeRRR poslato Oktobar 28, 2017, 14:04:24 POSLE PODNE
Trebami neki Brzinometar na foru plave boje (https://imgur.com/ftGCAgm)
Uradi textdraw i posalji mi i uradicu ti xD
Umem ja da ubaicm nego nema TD-ova XD
Napravit cu ti ja kasnije
@Official Facebook: Jhonny Marley
@Official Steam: xXmarleyXx
@Official Instagram: __sikiric__
@MOJI RADOVI:
@RAD 1: http://balkan-samp.com/forum/index.php?topic=117701.0


Poslednja Izmena: Oktobar 28, 2017, 20:30:08 POSLE PODNE od OmeRRR

////// Obrisati
Poslednja Izmena: Oktobar 28, 2017, 20:30:20 POSLE PODNE od OmeRRR

Treba mi kada clan neke org udje na server da to pise svim clanovima kao na SA ili ZG, ili label iznad glave kada je neko afk.
                                                                                 
Legacy Gaming Since 2017 ©

Scripter and Founder
Scripting 3+ Years
https://www.facebook.com/LegacyGamingOGC/ (FB Stranica)
https://www.facebook.com/nikolaa.jovicic (FB Nalog)

                                                                                 

Citat: Nikola4 poslato Oktobar 29, 2017, 20:11:00 POSLE PODNE
Treba mi kada clan neke org udje na server da to pise svim clanovima kao na SA ili ZG, ili label iznad glave kada je neko afk.
To mozes uraditi sa foreach i public OnPlayerConnect(playerid) a za AFK imas moju filterscriptu :D

Facebook - Klik



Treba mi kada neko hoce da se /goto do nekoga da se tom do koga hocete da se /goto pojavi Dialog na kome treba da Prihvati ili Odbije Teleport.
Evo moje komande /goto P.S Pocetnik sam pa ne zamerite:YCMD:goto(playerid, params[],help)
{
    #pragma unused help
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,""RG"(("SIVA"LG Info"RG")) ~ "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo[playerid][pRadi] == 1) return SCM(playerid,-1,""RG"(("SIVA"LG Info"RG")) ~ "BELA"Radis posao ne mozes da koristis ovu komandu!");
new string[128], giveplayerid, giveplayer[MAX_PLAYER_NAME];
new Float:plx,Float:ply,Float:plz;
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGM] >= 1 || PlayerInfo[playerid][pImunitet] >= 1 || PlayerInfo[playerid][pPromoter] == 1)
{
if(!sscanf(params, "u", giveplayerid))
{
    if(PlayerInfo[playerid][pGM] >= 1 && PlayerInfo[giveplayerid][pAdmin] >= 1) return SCM(playerid,-1,""RG"(("SIVA"LG Info"RG")) ~ "BELA"Ne mozete se portati do igraca koji je jaci od vas!");
    if(PlayerInfo[playerid][pImunitet] >= 1 && PlayerInfo[giveplayerid][pAdmin] >= 1) return SCM(playerid,-1,""RG"(("SIVA"LG Info"RG")) ~ "BELA"Ne mozete se portati do igraca koji je jaci od vas!");
      if(PlayerInfo[playerid][pImunitet] >= 1 && PlayerInfo[giveplayerid][pGM] >= 1) return SCM(playerid,-1,""RG"(("SIVA"LG Info"RG")) ~ "BELA"Ne mozete se portati do igraca koji je jaci od vas!");
      if(PlayerInfo[playerid][pPromoter] >= 1 && PlayerInfo[giveplayerid][pGM] >= 1) return SCM(playerid,-1,""RG"(("SIVA"LG Info"RG")) ~ "BELA"Ne mozete se portati do igraca koji je jaci od vas!");
      if(PlayerInfo[playerid][pPromoter] >= 1 && PlayerInfo[giveplayerid][pAdmin] >= 1) return SCM(playerid,-1,""RG"(("SIVA"LG Info"RG")) ~ "BELA"Ne mozete se portati do igraca koji je jaci od vas!");
      if(PlayerInfo[playerid][pPromoter] >= 1 && PlayerInfo[giveplayerid][pImunitet] >= 1) return SCM(playerid,-1,""RG"(("SIVA"LG Info"RG")) ~ "BELA"Ne mozete se portati do igraca koji je jaci od vas!");
if(PlayerInfo[playerid][pTrazeniLevel] >= 1) return SCM(playerid,-1,""RG"(("SIVA"LG Info"RG")) ~ "BELA"Ne mozete se portati do igraca jer imate trazeni level!");
if(PlayerInfo[playerid][pGM] >= 1 || PlayerInfo[playerid][pImunitet] >= 1 || PlayerInfo[playerid][pPromoter] == 1)
{
if(PlayerInfo[giveplayerid][pTrazeniLevel] >= 1) return SCM(playerid,-1,""RG"(("SIVA"LG Info"RG")) ~ "BELA"Ne mozete se portati do igraca koji ima trazeni level!");
}
if(PlayerInfo[giveplayerid][pGoto] == 1) return SCM(playerid,-1,""RG"(("SIVA"LG Info"RG")) ~ "BELA"Igrac je zabranio mogucnost portanja do njegal!");
if(PlayerInfo[playerid][pZatvor] != 0) return SCM(playerid,-1,""RG"(("SIVA"LG Info"RG")) ~ "BELA"Ne mozete se portati do igraca jer ste zatvoreni!");
            if(PlayerInfo[giveplayerid][pZatvor] != 0) return SCM(playerid,-1,""RG"(("SIVA"LG Info"RG")) ~ "BELA"Ne mozete se portati do igraca jer je zatvoren!");
if(PlayerInfo[playerid][pWar] >= 1) return SCM(playerid,-1,""RG"(("SIVA"LG Info"RG")) ~ "BELA"Ne mozete se portati do igraca jer ste u waru!");
if(PlayerInfo[giveplayerid][pWar] >= 1) return SCM(playerid,-1,""RG"(("SIVA"LG Info"RG")) ~ "BELA"Ne mozete se portati do igraca jer je u waru!");
if(!IsPlayerConnected(giveplayerid)) return SCM(playerid, -1, ""RG"(("SIVA"LG Info"RG")) "BELA"Pogresan ID!");
if(PolicajacNaDuznosti[playerid] == 1) return SCM(playerid,-1,""RG"(("SIVA"LG Info"RG")) ~ "BELA"Ne mozete se portati jer ste na PD/FBI Duznosti!");
GetPlayerPos(giveplayerid, plx, ply, plz);
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
JBC_SetVehiclePos(tmpcar, plx, ply+4, plz);
}
else
{
JBC_SetPlayerPos(playerid,plx,ply+2, plz);
}
SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(giveplayerid));
if(PlayerInfo[giveplayerid][pUfbi] == 0)
{
PlayerInfo[playerid][pUfbi] = 0;
}
if(PlayerInfo[giveplayerid][pUfbi] == 1)
{
PlayerInfo[playerid][pUfbi] = 1;
}
format(string, sizeof(string),""RG"(("SIVA"LG Info"RG")) "BELA"Teleportovao si se do igraca %s.",GetName(giveplayerid));
SCM(playerid, -1, string);
new arank[124];
if(PlayerInfo[playerid][pAdmin] == 1) { arank = "Admin Level 1"; }
else if(PlayerInfo[playerid][pAdmin] == 2) { arank = "Admin Level 2"; }
else if(PlayerInfo[playerid][pAdmin] == 3) { arank = "Admin Level 3"; }
else if(PlayerInfo[playerid][pAdmin] == 4) { arank = "Admin Level 4"; }
else if(PlayerInfo[playerid][pAdmin] == 5) { arank = "Head-Admin"; }
else if(PlayerInfo[playerid][pSkripter] == 1) { arank = "Skripter"; }
else if(PlayerInfo[playerid][pVlasnik] == 1) { arank = "Vlasnik"; }
else if(PlayerInfo[playerid][pAdmin] == 6) { arank = "Direktor"; }
else if(PlayerInfo[playerid][pGM] == 1) { arank = "GameMaster"; }
else if(PlayerInfo[playerid][pGM] == 2) { arank = "Gamemaster Level 2"; }
else if(PlayerInfo[playerid][pGM] == 3) { arank = "GameMaster Level 3"; }
else if(PlayerInfo[playerid][pPromoter] == 1) { arank = "Promoter"; }
else if(PlayerInfo[playerid][pVip] == 1) { arank = "Vip Level 1"; }
else if(PlayerInfo[playerid][pVip] == 2) { arank = "Vip Level 2"; }
else if(PlayerInfo[playerid][pVip] == 3) { arank = "Vip Level 3"; }
else if(PlayerInfo[playerid][pVip] == 4) { arank = "Vip Level 4"; }
else if(PlayerInfo[playerid][pVip] == 5) { arank = "Premium"; }
else if(PlayerInfo[playerid][pImunitet] == 1) { arank = "SpecTeam"; }
format(string, sizeof(string),""RG"(("SIVA"LG Info"RG")) "BELA"%s %s se teleportovao do tebe.",arank, GetName(playerid));
SCM(giveplayerid, -1, string);
}
else SCM(playerid, -1,""RG"(("SIVA"LG Info"RG")) ~ "BELA"/goto [ID/Nick]");
}
return 1;
}
                                                                                 
Legacy Gaming Since 2017 ©

Scripter and Founder
Scripting 3+ Years
https://www.facebook.com/LegacyGamingOGC/ (FB Stranica)
https://www.facebook.com/nikolaa.jovicic (FB Nalog)

                                                                                 

Dal neko ima komandu za underpoint mod za kreiranje vozila npr /avkreiraj id vozila (id boje 1) (id boje 2)
i /avunisti id vozila mnogo bih mi znacilo hvala