[GM] Eklata's Battlegrounds

Započeo Eklata, Avgust 16, 2009, 10:42:01 PRE PODNE

prethodna tema - sledeća tema

Jopa_Castello i 16 gostiju pregledaju ovu temu.

Super ti GM  thumbsup Ja sam ga vec imao priliku vidit i zaigrat s tobom xD  thumbsup
Perfect Life

Nikad zaboravit: Razor, rk01, Capone, GooD, WixxeR, ShoX, Trmka, Leon, putic, Suki,Dane,  eRasmos, EMIR,Dupi, Doda, N1xYy, Nedac, Ena, Apo LUksa, Max, Amina, Jovana,Don Corleone,  Shooter, GOCA, Kukac..

L u d i   G r a d DM <3 2008-2012

a jeli ima da se registriras i admin komande?





Kopiraj ovo u potpis ako mrzis cheatere!


Scripting status:

PittBull Stunt: 5%

My works:

[MAP]
LS Beach
LS Areo Stunt
Baza za dm serveru NEW!

[FS]
not!

[GM]
not!

KLIKNI TU!


Chrome

Ja cu ga sad skinut i doc pametovat  :D

edit: eto da ne bude da stalno pametujem; nije los mod(nisam igrao :P)

Nego, zasto nisi isao na DCMD nego na STRTOK?...
OnGameModeInit => sta ce ti ona 3 arraya; mogao si stavit jedan i samo taj jedan na sva 3 format-a primjenit.. i tako bi ustedio 256 * 4 byte-a...
za dobivanje max playersa UVIJEK koristi MAX_PLAYERS konstantu jer je brze nego funkcijom a isto sranje ;)

jos nesto.. vidim da si u (skoro) cijelom modu radio ovako nesto:

if(HasBag[playerid] == 1)
{
    new Float:X,Float:Y,Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
Bag = CreatePickup(1210, 3, X, Y, Z);
format(string, sizeof(string), "Mission: %s has died and lost his bag! Go and get the bag!",sendername);
SendClientMessageToAll(COLOR_BLUE, string);
}
       else
       {
       }

Ovaj else je totalno bezpotrebno; zasto? ako se if dogodi/ne dogodi isto sranje ispadne jer je else prazan  i ne sluzi nicemu; mogao si samo if stavit(al tako ima u skoro cijelom gmu lol)

Jos jedna primjedba.. Onaj tvoj dugacki kod u OnPlayerDeath(gdje provjerava killera i playera) je mogao biti skracen na sljedece(dok su 3 bande; ako vise malo se treba izmjeniti, ali jos uvijek ce biti krace i efikasnije):


if(gTeam[playerid] == gTeam[killerid])
{
SetPlayerHealth(playerid, 0.0);
SendClientMessage(killerid, COLOR_WHITE, "Team killing is not allowed!!! You were punished with $5000");
GivePlayerMoney(killerid, -5000);
GivePlayerMoney(playerid, 5000);
switch(gTeam[playerid])
{
case 1:
terrorscore--;
case 2:
polscore--;
case 3:
unscore--;
}
}
else
{
switch(gTeam[playerid])
{
case 1:
{
format(gString, MAX_IO, "Terrorist %s has been killed by %s %s.%s %s gets $5000.", gTeam[killerid] == 2 ? "policeman" : "UN Officer", giveplayer, gTeam[killerid] == 2 ? "Policeman" : "UN Officier", sendername);
if(gTeam[killerid] == 2) polscore++;
else if(gTeam[killerid] == 3) unscore++;
}
case 2:
{
format(gString, MAX_IO, "Policeman %s has been killed by an %s %s.%s gets $5000.", gTeam[killerid] == 1 ? "terrorist" : "UN Officier" giveplayer, gTeam[killerid] == 1 ? "Terrorist" : "UN Officier", sendername);
if(gTeam[killerid] == 1) terrorscore++;
else if(gTeam[killerid] == 3) unscore++;
}
case 3:
{
format(gString, MAX_IO, "UN Officier %s has been killed by an %s %s.%s gets $5000.", gTeam[killerid] == 1 ? "terrorist" : "policeman" giveplayer, gTeam[killerid] == 1 ? "Terrorist" : "Policeman", sendername);
if(gTeam[killerid] == 1) terrorscore++;
else if(gTeam[killerid] == 2) polscore++;
}
}
SendClientMessageToAll(COLOR_WHITE, string);
GivePlayerMoney(killerid, 5000);
GivePlayerMoney(playerid, -5000);
}
Poslednja Izmena: Avgust 21, 2009, 20:15:29 POSLE PODNE od Chrome