YCMD:vc(playerid, params[],help)
{
#pragma unused help
if(PI != 0) return Error(playerid, "Utisani ste, ne mozete koristiti chat.");
if(PI >= 1 || PI == 1 || uVIPChatu == true)
{
new text;
if(sscanf(params, "s", text)) return Koristi(playerid, "p ");
if(strlen(text) >= 84) return Error(playerid, "Vas text je predugacak. Mozete korisite ukupno 84 slova/znaka!");
if(PI == 1)
{
if(PI >= 6 || IsPlayerAdmin(playerid))
{
new arank;
if(PI == 7) { arank = "Vlasnik"; }
else { arank = "Admin"; }
format(nellys, 128, "** |VC| %s %s: {FFFFFF}%s",arank , ImeIgraca(playerid), text);
vchat(ZUTA, nellys);
}
else if(PI > 0 && PI < 6)
{
format(nellys, 128, "** |VC| Admin %d %s: {FFFFFF}%s", PI, ImeIgraca(playerid), text);
vchat(ZUTA, nellys);
}
else if(PI >= 1)
{
new viprank;
if(PI == 1) { viprank = "Bronze vip"; }
else if(PI == 2) { viprank = "Silver vip"; }
else if(PI == 3) { viprank = "Gold vip"; }
format(nellys, 128, "** |VC| %s %s: {FFFFFF}%s", viprank, ImeIgraca(playerid), text);
vchat(ZUTA, nellys);
if(gettime() < koristioVChat)
{
Error(playerid, "Vip/promoter chat mozete koristiti svakih 20 sekundi");
return 0;
}
koristioVChat = gettime() + 20;
}
else if(PI == 1)
{
format(nellys, 128, "** |VC| Promoter %s: {FFFFFF}%s", ImeIgraca(playerid), text);
vchat(ZUTA, nellys);
if(gettime() < koristioVChat)
{
Error(playerid, "Vip/promoter chat mozete koristiti svakih 20 sekundi");
return 0;
}
koristioVChat = gettime() + 20;
}
else return Ovlascenje(playerid);
}
else if(PI == 2)
{
if(PI >= 6 || IsPlayerAdmin(playerid))
{
new arank;
if(PI == 7) { arank = "Vlasnica"; }
else { arank = "Adminka"; }
format(nellys, 128, "** |VC| %s %s: {FFFFFF}%s",arank , ImeIgraca(playerid), text);
vchat(ZUTA, nellys);
}
else if(PI > 0 && PI < 6)
{
format(nellys, 128, "** |VC| Adminka %d %s: {FFFFFF}%s", PI, ImeIgraca(playerid), text);
vchat(ZUTA, nellys);
}
else if(PI >= 1)
{
new viprank;
if(PI == 1) { viprank = "Bronze vip"; }
else if(PI == 2) { viprank = "Silver vip"; }
else if(PI == 3) { viprank = "Gold vip"; }
format(nellys, 128, "* |VC| %s %s: {FFFFFF}%s", viprank, ImeIgraca(playerid), text);
vchat(ZUTA, nellys);
if(gettime() < koristioVChat)
{
Error(playerid, "Vip/promoter chat mozete koristiti svakih 20 sekundi");
return 0;
}
koristioVChat = gettime() + 20;
}
else if(PI == 1)
{
format(nellys, 128, "** |VC| Promoterka %s: {FFFFFF}%s", ImeIgraca(playerid), text);
vchat(ZUTA, nellys);
if(gettime() < koristioVChat)
{
Error(playerid, "Vip/promoter chat mozete koristiti svakih 20 sekundi");
return 0;
}
koristioVChat = gettime() + 20;
}
else return Ovlascenje(playerid);
}
}
else return Error(playerid, "Nisi promoter/vip.");
return 1;
}YCMD:g(playerid, params[],help)
{
if(PI != 0) return SCM(playerid, CRVENA, "ERROR {FFFFFF}Utisani ste, ne mozete koristiti chat.");
new text;
if(sscanf(params, "s", text)) return Koristi(playerid, "g ");
if(strlen(text) >= 84) return Error(playerid, "Vas text je predugacak. Mozete korisite ukupno 84 slova/znaka!");
if(PI == 1)
{
if(PI == 7 || IsPlayerAdmin(playerid))
{
new arank;
if(PI == 7) { arank = "Vlasnik"; }
else { arank = "Admin"; }
format(nellys, 128, "|{FFFFFF}G{48E31C}| %s %s: {FFFFFF}%s",arank , ImeIgraca(playerid), text);
gchat(ZELENA2, nellys);
}
else if(PI == 6)
{
if(PI == 1)
{
format(nellys, 128, "|{FFFFFF}G{48E31C}| Suvlasnik %s %s: {FFFFFF}%s", ImeIgraca(playerid), text);
gchat(ZELENA2, nellys);
}
}
else if(PI == 5)
{
if(PI == 1)
{
format(nellys, 128, "|{FFFFFF}G{48E31C}| Direktor %s %s: {FFFFFF}%s", ImeIgraca(playerid), text);
gchat(ZELENA2, nellys);
}
}
else if(PI == 4)
{
if(PI == 1)
{
format(nellys, 128, "|{FFFFFF}G{48E31C}| Head Admin %s %s: {FFFFFF}%s", ImeIgraca(playerid), text);
gchat(ZELENA2, nellys);
}
}
else if(PI > 0 && PI < 4)
{
format(nellys, 128, "|{FFFFFF}G{48E31C}| Admin %d %s: {FFFFFF}%s", PI, ImeIgraca(playerid), text);
gchat(ZELENA2, nellys);
}
else if(PI >= 4)
{
format(nellys, 128, "|{FFFFFF}G{48E31C}| Vodja Helpera %s: {FFFFFF}%s", ImeIgraca(playerid), text);
gchat(ZELENA2, nellys);
}
else if(PI > 0 && PI < 4)
{
format(nellys, 128, "|{FFFFFF}G{48E31C}| Helper %d %s: {FFFFFF}%s", PI, ImeIgraca(playerid), text);
gchat(ZELENA2, nellys);
}
else return Ovlascenje(playerid);
}
if(PI == 2)
{
if(PI >= 6 || IsPlayerAdmin(playerid))
{
new arank;
if(PI == 7) { arank = "Vlasnica"; }
else { arank = "Adminka"; }
format(nellys, 128, "|{FFFFFF}G{48E31C}| %s %s: {FFFFFF}%s",arank , ImeIgraca(playerid), text);
gchat(ZELENA2, nellys);
}
else if(PI == 6)
{
if(PI == 2)
{
format(nellys, 128, "|{FFFFFF}G{48E31C}| Suvlasnica %s %s: {FFFFFF}%s", ImeIgraca(playerid), text);
gchat(ZELENA2, nellys);
}
}
else if(PI == 5)
{
if(PI == 2)
{
format(nellys, 128, "|{FFFFFF}G{48E31C}| Direktorka %s %s: {FFFFFF}%s", ImeIgraca(playerid), text);
gchat(ZELENA2, nellys);
}
}
else if(PI == 4)
{
if(PI == 2)
{
format(nellys, 128, "|{FFFFFF}G{48E31C}| Head Adminka %s %s: {FFFFFF}%s", ImeIgraca(playerid), text);
gchat(ZELENA2, nellys);
}
}
else if(PI >= 4)
{
format(nellys, 128, "|{FFFFFF}G{48E31C}| Vodja Helpera %s: {FFFFFF}%s", ImeIgraca(playerid), text);
gchat(ZELENA2, nellys);
}
else if(PI > 0 && PI < 4)
{
format(nellys, 128, "|{FFFFFF}G{48E31C}| Helperka %d %s: {FFFFFF}%s", PI, ImeIgraca(playerid), text);
gchat(ZELENA2, nellys);
}
else return Ovlascenje(playerid);
}
return 1;
}
Sledeci put pazi za koga kazes da je wanna be