Opportunity DeathMatch

Započeo ℓα¢кєηzι, Decembar 22, 2017, 20:49:26 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Citat: Grizzli poslato Decembar 22, 2017, 21:32:48 POSLE PODNE
Solidan mod, ima osnovne komande i mislim da može poslužiti SAMP-erima koji planiraju otvarati DeathMatch server

CitatCredits:Grizzli

Hvala za Credit iako nisam puno pomogao  :)
Haha,hvala ti :D Opet jesi pomogao,nadam se jos nekoj saradnji :D
Red Rose OGC Developer
SOON...

Pastebin molim
Former Developer | COD: Lords Of War - Modern Warfare 3 | Stunt Planet | Global Warfare |


SOlidan mod, mozes samo u private nest...

Citat: Ozzie147â,,¢ poslato Decembar 22, 2017, 21:52:02 POSLE PODNE
SOlidan mod, mozes samo u private nest...
Hvala,naravno,reci sta treba!
Red Rose OGC Developer
SOON...

Solidno
#ROBY
#ONLINE !
----- NIKAD PORAZ SAMO LEKCIJA! -----


Evo par mogućnosti kako da učiniš kod boljim, to jest da naucis nesto.

1. Nikad ne koristi ovo što si ti sada koristio, time jednostavno kvariš kod i poravnanje je grozno te skrivaš same greške u kodu ( Indentation Warnings ).

[pawn]#pragma tabsize 0[/pawn]

2. Koristi enumeratore za razne dialog ili se prebaci na ( easyDialog ) umjesto da postavljas ID za svaki drugi, i tako sprijecis mijesanje dialoga.

[pawn]
enum
{
    DIALOG_HELP,
    DIALOG_REGISTER,
    DIALOG_LOGIN,     
    ADMIN_DIALOG,
}     
[/pawn]

3. Mislim ono... Nauci barem osnove i izradi to u par linija.


new Text:LoginTD0;
new Text:LoginTD1;
new Text:LoginTD2;
new Text:LoginTD3;
new Text:LoginTD4;
new Text:OPLogo;
new Text:OPLogo1;
new Text:DonjiTD0;
new Text:DonjiTD1;
new Text:DonjiTD2;
new Text:DonjiTD3;
new Text:DonjiTD4;
new Text:DonjiTD5;
new Text:DonjiTD6;
/*new Text:Kadran0;
new Text:Kadran1;
new Text:Kadran2;
new Text:Kadran3;
new Text:Kadran4;
new Text:Kadran5;
new Text:Kadran6;
new Text:Kadran7;
new Text:Kadran8;
new Text:Kadran9;
new Text:Kadran10;
new Text:Kadran11;
new Text:Kadran12;
new Text:Kadran13;
new Text:Kadran14;
new Text:Kadran15;
new TextDraws[td];
new Text:TextDrawsd[MAX_PLAYERS][4];


4. Ovake stvari možeš i optimizirati u liniji

[pawn]new    gSpectateID[MAX_PLAYERS], gSpectateType[MAX_PLAYERS], Logged[MAX_PLAYERS], DM[MAX_PLAYERS], AdminVozilo[MAX_PLAYERS], vozilo1;[/pawn]

5. Bezpotrebno

[pawn]
    if(reason == 0) {format(deathreason, sizeof(deathreason), "Fists");}
    if(reason == 1) {format(deathreason, sizeof(deathreason), "Brass Knuckles");}
    if(reason == 2) {format(deathreason, sizeof(deathreason), "Golf Stick");}
    if(reason == 3) {format(deathreason, sizeof(deathreason), "Cop Stick");}
    if(reason == 4) {format(deathreason, sizeof(deathreason), "Knife");}
    if(reason == 5) {format(deathreason, sizeof(deathreason), "Baseball Bat");}
    if(reason == 6) {format(deathreason, sizeof(deathreason), "Shovel");}
    if(reason == 7) {format(deathreason, sizeof(deathreason), "Pool Cue");}
    if(reason == 8) {format(deathreason, sizeof(deathreason), "Katana");}
    if(reason == 9) {format(deathreason, sizeof(deathreason), "Chainsaw");}
    if(reason == 10){format(deathreason, sizeof(deathreason), "Dildo");}
    if(reason == 11){format(deathreason, sizeof(deathreason), "Small Vibrator");}
    if(reason == 12){format(deathreason, sizeof(deathreason), "Large Vibrator");}
    if(reason == 13){format(deathreason, sizeof(deathreason), "Vibrator");}
    if(reason == 14){format(deathreason, sizeof(deathreason), "Flowers");}
    if(reason == 15){format(deathreason, sizeof(deathreason), "Cane");}
    if(reason == 16){format(deathreason, sizeof(deathreason), "Grenade");}
    if(reason == 17){format(deathreason, sizeof(deathreason), "Smoke Grenade");}
    if(reason == 18){format(deathreason, sizeof(deathreason), "Molotov Cocktail");}
    if(reason == 19){format(deathreason, sizeof(deathreason), "Vehicle Weapon");}
    if(reason == 20){format(deathreason, sizeof(deathreason), "Hydra Flare");}
    if(reason == 21){format(deathreason, sizeof(deathreason), "Jetpack");}
    if(reason == 22){format(deathreason, sizeof(deathreason), "9mm");}
    if(reason == 23){format(deathreason, sizeof(deathreason), "Silenced 9mm");}
    if(reason == 24){format(deathreason, sizeof(deathreason), "Desert Eagle");}
    if(reason == 25){format(deathreason, sizeof(deathreason), "Shotgun");}
    if(reason == 26){format(deathreason, sizeof(deathreason), "Sawnoff Shotgun");}
    if(reason == 27){format(deathreason, sizeof(deathreason), "Combat Shotgun");}
    if(reason == 28){format(deathreason, sizeof(deathreason), "Micro SMG");}
    if(reason == 29){format(deathreason, sizeof(deathreason), "MP5");}
    if(reason == 30){format(deathreason, sizeof(deathreason), "AK47");}
    if(reason == 31){format(deathreason, sizeof(deathreason), "M4");}
    if(reason == 32){format(deathreason, sizeof(deathreason), "Tec-9");}
    if(reason == 33){format(deathreason, sizeof(deathreason), "Rifle");}
    if(reason == 34){format(deathreason, sizeof(deathreason), "Sniper Rifle");}
    if(reason == 35){format(deathreason, sizeof(deathreason), "Rocket Launcherr");}
    if(reason == 36){format(deathreason, sizeof(deathreason), "Rocket Launcher");}
    if(reason == 37){format(deathreason, sizeof(deathreason), "Flamethrower");}
    if(reason == 38){format(deathreason, sizeof(deathreason), "Minigun");}
    if(reason == 39){format(deathreason, sizeof(deathreason), "Backpack Bomb");}
    if(reason == 40){format(deathreason, sizeof(deathreason), "Detonator");}
    if(reason == 41){format(deathreason, sizeof(deathreason), "Spraycan");}
    if(reason == 42){format(deathreason, sizeof(deathreason), "Fire Extinguisher");}
    if(reason == 43){format(deathreason, sizeof(deathreason), "Camera");}
    if(reason == 44){format(deathreason, sizeof(deathreason), "Nightvision Goggles");}
    if(reason == 45){format(deathreason, sizeof(deathreason), "Infrared Goggles");}
    if(reason == 46){format(deathreason, sizeof(deathreason), "Parachute");}
    if(reason == 47){format(deathreason, sizeof(deathreason), "!>>> Unknown 47 <<<!");}
    if(reason == 48){format(deathreason, sizeof(deathreason), "!>>> Unknown 48 <<<!");}
    if(reason == 49){format(deathreason, sizeof(deathreason), "Vehicle");}
    if(reason == 50){format(deathreason, sizeof(deathreason), "Helicopter Blades");}
    if(reason == 51){format(deathreason, sizeof(deathreason), "Explosion");}
    if(reason == 52){format(deathreason, sizeof(deathreason), "!>>> Unknown 52 <<<!");}
    if(reason == 53){format(deathreason, sizeof(deathreason), "Drowned");}
    if(reason == 54){format(deathreason, sizeof(deathreason), "Splat");}
    if(reason == 55){format(deathreason, sizeof(deathreason), "!>>> Unknown 55 <<<!");}
    if(reason == 255){format(deathreason, sizeof(deathreason), "Died");}
[/pawn]

Ne koristiš streamer na pravilan nacin.
Koristi GetPlayerPoolSize loop jer tako uzimas najveći ID igraca koji je na serveru.
Dosta sranja u nekim callback.
Parametri ti nisu potrebi ako ih ne koristiš

To je to za sad, i na ovo sam utrosio dosta vremena.


Poslednja Izmena: Decembar 22, 2017, 22:21:09 POSLE PODNE od Bolex_
Former Developer | COD: Lords Of War - Modern Warfare 3 | Stunt Planet | Global Warfare |

Super

credits: Xunder, Ino420, Muma

Citat: Pottus;3903994SetPlayerPos("dreni1998", 666.666, 666.666, 666.666, 666.666);    ///// GO IN HELL MOTHERFUCKER

https://i.imgur.com/XHLx9oj.gif
https://i.ibb.co/ZJqQKWT/NXRX.gif

Dobar po slikama moram test
[pawn]
= Ex Owner & Developer у Acuzio Gaming Online Community
= Ex Developer у Perfect Gaming Community
= Ex Developer у Smart Project Community
= Ex Developer у Athlone Community[/pawn]


Haha,hvalaa :D
Red Rose OGC Developer
SOON...

Nije nesto divan kod, ali samo nastavi. Pohvale za trud :)


bilo je lijepo dok je trajalo.


Citat: ludigamer poslato Decembar 23, 2017, 10:12:46 PRE PODNE
BalkanBrothers se vraca imali smo problema sa hostom ali evo nas opet Ip:188.165.40.169:7719 ocekujemo vas u sto vecem broju izgubili smo dosta igraca zbog hosta ali se nadamo da ce se vratiti
@SlavicBeast @Amain

Facebook - Klik