Deo skripte:nije prob skripta nego ovo sta god da je:
CMD:Proveri(playerid, params[])
{
if(UlogovanProvera == 0) return SCM(playerid, NS_ORANGE,"* Morate se ulogovati da bi koristili ovu komandu!");
if(PlayerInfo < 1) return SCM(playerid,NS_ORANGE, "* Nemate ovlascenje za upotrebu ove komande.");
if(AdminDuty == 0) return SCM(playerid,NS_ORANGE,"* Morate biti na staff duznosti kako bi mogli koristiti ovu komandu.");
new id, opcija, buffer;
if(sscanf(params, "us", id, opcija))
{
SCM(playerid,NS_YELLOW," "BELA"/proveri [ID/Ime_Prezime] ");
SCM(playerid,NS_YELLOW," "BELA"Disarm | stats | Org | FS | Level | Email");
return 1;
}
if(id == INVALID_PLAYER_ID) return SCM(playerid,NS_ORANGE, "* Taj igrac nije online.");
if(!isnull(opcija))
{
if(PlayerInfo < 1) return SCM(playerid,NS_ORANGE, "* Nemate ovlascenje za upotrebu ove komande.");
CheckShowStats(playerid, id);
}
else if(!strcmp(opcija, "Disarm", true))
{
if(PlayerInfo < 1) return SCM(playerid,NS_ORANGE, "* Nemate ovlascenje za upotrebu ove komande.");
GetPlayerName(id, buffer, MAX_PLAYER_NAME + 1);
format(buffer, sizeof buffer, " Igrac %s je disarmovan na [%d sec]",GetName(id), PlayerInfo);
SendClientMessage(playerid, NS_YELLOW, buffer);
}
else if(!strcmp(opcija, "org", true))
{
if(PlayerInfo < 1 && PlayerInfo <1) return SCM(playerid,NS_ORANGE, "* Nemate ovlascenje za upotrebu ove komande.");
GetPlayerName(id, buffer, MAX_PLAYER_NAME + 1);
format(buffer, sizeof buffer, " Igrac %s: Organizacija: %s: Rank: %d.",GetName(id), ImeOrganizacije(PlayerInfo), PlayerInfo);
SendClientMessage(playerid, NS_YELLOW, buffer);
}
else if(!strcmp(opcija, "FS", true))
{
if(PlayerInfo < 1 && PlayerInfo <1) return SCM(playerid,NS_ORANGE, "* Nemate ovlascenje za upotrebu ove komande.");
CheckShowSkills(playerid,id);
}
else if(!strcmp(opcija, "Level", true))
{
if(PlayerInfo < 1 && PlayerInfo <1) return SCM(playerid,NS_ORANGE, "* Nemate ovlascenje za upotrebu ove komande.");
GetPlayerName(id, buffer, MAX_PLAYER_NAME + 1);
format(buffer, sizeof buffer, " Igrac %s je level [%d]",GetName(id), PlayerInfo);
SendClientMessage(playerid, NS_YELLOW, buffer);
}
////////////////////////////////////////////////////////////////////////////
else if(!strcmp(opcija, "Email", true))
{
if(PlayerInfo < 5) return SCM(playerid,NS_ORANGE, "* Nemate ovlascenje za upotrebu ove komande.");
GetPlayerName(id, buffer, MAX_PLAYER_NAME + 1);
format(buffer, sizeof buffer, " Igrac %s email: %s",GetName(id), PlayerInfo);
SendClientMessage(playerid, NS_YELLOW, buffer);
}
////////////////////////////////////////////////////////////////////////////
else return SCM(playerid, NS_ORANGE,"Pogresna Opcija!");
////////////////////////////////////////////////////////////////////////////
new pocetno; GetPlayerName(playerid, pocetno, MAX_PLAYER_NAME + 1);
format(pocetno, sizeof pocetno, "Staff: %s [ID: %d] | [Rank: %s] | Igrac: %s [ID:%d] | Paramentli:/proveri %s", pocetno, playerid, PlayerInfo, GetName(id), id, opcija);
Log("Logovi/Admini/Proveri.log", pocetno);
////////////////////////////////////////////////////////////////////////////
return 1;
}