[POMOC] - Admin komanda /apostavi

Započeo elemental., Avgust 22, 2011, 18:52:25 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Noxicus
Detaljan opis problema: Gledao sam u GM komande, hocu da sebi admina postavi, logam se kao RCON, kucam /apostavi admin 0 1338, kaze mi nisi ovlasten

Dio skripte: Evo cmd:

CMD:apostavi(playerid, params[])
{
new string[128], odabir[20], igrac, kolicinas;
new idname[MAX_PLAYER_NAME];

new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(sscanf(params, "s[20]ud",odabir, igrac, kolicinas))
{
if(PlayerInfo[playerid][pAdmin] == 2||PlayerInfo[playerid][pAdmin] == 3)
{
SCM(playerid, COLOR_GRAD3,"{168BFF}INFO: {959561} /aponisti [ime] [ID/DioImena] [kolicina]");
SCM(playerid, WHITE, "{3EFF9F}Dostupno: {A2FFD0}kpdom(vrijeme), posao, zatvor(vrijeme), mute(vrijeme), kredit(mob), brMoba");
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 4)
{
SCM(playerid, COLOR_GRAD3,"{168BFF}INFO: {959561} /aponisti [ime] [ID/DioImena] [kolicina]");
SCM(playerid, WHITE, "{3EFF9F}Dostupno: {A2FFD0}posao, zatvor(vrijeme), mute(vrijeme), kredit(mob), brMoba");
SCM(playerid, WHITE, "{3EFF9F}Dostupno: {A2FFD0}organizacija, kuca, firma, sfirma, tutorijal");
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 1337)
{
SCM(playerid, COLOR_GRAD3,"{168BFF}INFO: {959561} /aponisti [ime] [ID/DioImena] [kolicina]");
SCM(playerid, WHITE, "{3EFF9F}Dostupno:{A2FFD0} posao, zatvor(vrijeme), mute(vrijeme), kredit(mob), brMoba");
SCM(playerid, WHITE, "{3EFF9F}Dostupno: {A2FFD0}gamemaster, organizacija, kuca, firma, skin, tutorijal");
SCM(playerid, WHITE, "{3EFF9F}Dostupno: {A2FFD0}lider, donator, droga, materijali, spol, rank");
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 1338)
{
SCM(playerid, COLOR_GRAD3,"{168BFF}INFO: {959561} /aponisti [ime] [ID/DioImena] [kolicina]");
SCM(playerid, WHITE, "{3EFF9F}Dostupno: {A2FFD0}posao, zatvor(vrijeme), mute(vrijeme), kredit(mob), brMoba");
SCM(playerid, WHITE, "{3EFF9F}Dostupno: {A2FFD0}organizacija, kuca, firma, skin, tutorijal");
SCM(playerid, WHITE, "{3EFF9F}Dostupno: {A2FFD0}lider, donator, droga, materijali, spol, rank");
SCM(playerid, WHITE, "{3EFF9F}Dostupno: {A2FFD0}banka, novac, respekt, admin, satiigranja, gamemaster");
SCM(playerid, WHITE, "{3EFF9F}Dostupno: {A2FFD0}pgbodovi, paydaypoeni, gamemaster");
return 1;
}
}
else
{
if(strcmp(odabir,"kpdom",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
if(IsPlayerConnected(igrac))
{
if(PlayerInfo[igrac][pJailed] == 2)
{
PlayerInfo[igrac][pJailTime] = kolicinas*60;
SetPlayerPos(igrac,1552.4223632813,-1675.6357421875,16.1953125);
//SetPlayerWorldBounds(igrac,20000.0000,-20000.0000,20000.0000,-20000.0000); //Reset world to player
SetPlayerInterior(igrac, 0);
GetPlayerName(igrac, idname, sizeof(idname));

format(string,sizeof(string), "{FF0000}Promijenjeno ti je vrijeme kazne(KP Dom)! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si {FFFF80}%s {FF0000}vrijeme kazne", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Taj igrac nije zatvoren u KP domu!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
if(strcmp(odabir,"tutorijal",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
SetPVarInt(igrac, "Tutorijal", kolicinas);
}
}
else if(strcmp(odabir,"pgbodovi",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1338)
{
if(IsPlayerConnected(igrac))
{
if (GetPVarInt(playerid, "DonatorRank") >= 1)
{
SetPVarInt(playerid, "PGBodovi", kolicinas);
//GivePlayerCash(igrac, -GetPlayerCash(igrac));
//SetPlayerSkin(igrac, 33);
SacuvajIgraca(igrac);GetPlayerName(igrac, idname, sizeof(idname));
format(string,sizeof(string), "{FF0000}Postavljeni su ti PG poeni na: %d! |{FFFF80}Admin: %s",  kolicinas, sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Postavio si {FFFF80}%s {FF0000}PG poene", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Taj igrac nije donator!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"zatvor",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
if(IsPlayerConnected(igrac))
{
if(PlayerInfo[igrac][pJailed] == 1)
{

PlayerInfo[igrac][pJailTime] = kolicinas*60;
SetPlayerPos(igrac,1552.4223632813,-1675.6357421875,16.1953125);
//SetPlayerWorldBounds(igrac,20000.0000,-20000.0000,20000.0000,-20000.0000); //Reset world to player
SetPlayerInterior(igrac, 0);
GetPlayerName(igrac, idname, sizeof(idname));
TextDrawHideForPlayer(igrac, pritvorvrijeme[igrac]);TextDrawDestroy(pritvorvrijeme[playerid]);
format(string,sizeof(string), "{FF0000}Promijenjeno ti je vrijeme kazne(zatvor)! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si {FFFF80}%s {FF0000}vrijeme kazne", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Taj igrac nije zatvoren!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"mute",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
if(IsPlayerConnected(igrac))
{
if(PlayerInfo[igrac][pMuted] == 1)
{
//PlayerInfo[igrac][pMuted] = 0;
PlayerInfo[igrac][pMuteTime] = kolicinas*60;GetPlayerName(igrac, idname, sizeof(idname));
//DeletePlayer3DTextLabel(igrac, playertextid5);
format(string,sizeof(string), "{FF0000}Promijenjeno ti je vrijeme kazne(mute)! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si {FFFF80}%s {FF0000}vrijeme kazne", idname);SCM(playerid, 0xFF4141FF, string);
TextDrawHideForPlayer(igrac, MuteVrijeme[igrac]);TextDrawDestroy(MuteVrijeme[igrac]);
}
else return SCM(playerid, GREY, "Taj igrac nije usutkan!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"level",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
if(IsPlayerConnected(igrac))
{
PlayerInfo[igrac][pLevel] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;
format(string,sizeof(string), "{FF0000}Promijenjen ti je Level! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si igracu{FFFF80} %s {FF0000}Level", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"posao",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
if(IsPlayerConnected(igrac))
{
SetPVarInt(playerid, "Posao", kolicinas);GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;
format(string,sizeof(string), "{FF0000}Promijenjen ti je Posao! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si igracu{FFFF80} %s {FF0000}posao", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"kredit",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
if(IsPlayerConnected(igrac))
{
PlayerInfo[igrac][pKredit] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;
format(string,sizeof(string), "{FF0000}Promijenjena ti je kolicina Kredita! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si igracu{FFFF80} %s {FF0000}kredit", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"brmoba",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
if(IsPlayerConnected(igrac))
{
PlayerInfo[igrac][pPnumber] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;
format(string,sizeof(string), "{FF0000}Promijenjen ti je broj moba! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si igracu{FFFF80} %s {FF0000}broj moba", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"gamemaster",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1338)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 1 || kolicinas <= 4)
{
PlayerInfo[igrac][pGameMaster] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;
format(string,sizeof(string), "{FF0000}Postavljen ti je status GameMastera! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si status{FFFF80} %s {FF0000}GameMastera", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 1 i preko 4!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"skin",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 1 || kolicinas <= 299)
{
PlayerInfo[igrac][pChar] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
PlayerInfo[igrac][pModel] = kolicinas;
SetPlayerSkin(igrac, kolicinas);
//PlayerInfo[igrac][pJob] = 0;
format(string,sizeof(string), "{FF0000}Promijenjen ti je skin! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si skin{FFFF80} %s {FF0000}na: %d", idname, kolicinas);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 1 i preko 299!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"organizacija",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 1 || kolicinas <= 13)
{
PlayerInfo[igrac][pMember] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
new ttext[120];
if(PlayerInfo[igrac][pMember] == 1) { ttext = "Police Department"; }
else if(PlayerInfo[igrac][pMember] == 2) { ttext = "FBI"; }
else if(PlayerInfo[igrac][pMember] == 3) { ttext = "SWAT"; }
else if(PlayerInfo[igrac][pMember] == 4) { ttext = "MD"; }
else if(PlayerInfo[igrac][pMember] == 5) { ttext = "LCN"; }
else if(PlayerInfo[igrac][pMember] == 6) { ttext = "Yakuza"; }
else if(PlayerInfo[igrac][pMember] == 8) { ttext = "Hitman"; }
else if(PlayerInfo[igrac][pMember] == 9) { ttext = "CNN"; }
else if(PlayerInfo[igrac][pMember] == 10) { ttext = "Taxi"; }
else if(PlayerInfo[igrac][pMember] == 11) { ttext = "Licensera"; }
else if( PlayerInfo[igrac][pMember] == 12) { ttext = "Mara Salvatrucha(MS13)"; }
else if(PlayerInfo[igrac][pMember] == 13) { ttext = "Crips"; }
else {ttext = "[Nema]";}
format(string,sizeof(string), "{FF0000}Postavljena ti je organizacija na %s ! | {FFFF80}Admin: %s", ttext, sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si organizaciju igracu {FFFF80}%s na: %s ", idname, ttext);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 1 i preko 13!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"kuca",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 1 || kolicinas <= 1000)
{
PlayerInfo[igrac][pPhousekey] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;
format(string,sizeof(string), "{FF0000}Postavljena ti je kuca! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si kljuc kuce {FFFF80}%s ", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 1 i preko 1000!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"firma",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 1 || kolicinas <= 200)
{
PlayerInfo[igrac][pPbiskey] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;
format(string,sizeof(string), "{FF0000}Postavljena ti je firma! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si kljuc firme {FFFF80}%s ", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 1 i preko 200!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"sfirma",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 1 || kolicinas <= 200)
{
PlayerInfo[igrac][pPsbiskey] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;
format(string,sizeof(string), "{FF0000}Postavljena ti je firma! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si kljuc firme {FFFF80}%s ", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 1 i preko 200!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"lider",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 1 || kolicinas <= 13)
{
PlayerInfo[igrac][pLeader] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
PlayerInfo[igrac][pMember] = 0;PlayerInfo[igrac][pRank] = 6;
new ttext[120];
if(PlayerInfo[igrac][pLeader] == 1) { ttext = "Police Department"; }
else if(PlayerInfo[igrac][pLeader] == 2) { ttext = "FBI"; }
else if(PlayerInfo[igrac][pLeader] == 3) { ttext = "SWAT"; }
else if(PlayerInfo[igrac][pLeader] == 4) { ttext = "MD"; }
else if(PlayerInfo[igrac][pLeader] == 5) { ttext = "LCN"; }
else if(PlayerInfo[igrac][pLeader] == 6) { ttext = "Yakuza"; }
else if(PlayerInfo[igrac][pLeader] == 7) { ttext = "Gradonacelnik"; }
else if(PlayerInfo[igrac][pLeader] == 8) { ttext = "Hitman"; }
else if(PlayerInfo[igrac][pLeader] == 9) { ttext = "CNN"; }
else if(PlayerInfo[igrac][pLeader] == 10) { ttext = "Taxi"; }
else if(PlayerInfo[igrac][pLeader] == 11) { ttext = "Licensera"; }
else if( PlayerInfo[igrac][pLeader] == 12) { ttext = "Mara Salvatrucha(MS13)"; }
else if(PlayerInfo[igrac][pLeader] == 13) { ttext = "Crips"; }
else {ttext = "[Nema]";}
if(kolicinas == 0) { PlayerInfo[igrac][pChar] = 0; }
else if(kolicinas == 1) { PlayerInfo[igrac][pChar] = 288; } //Police Force
else if(kolicinas == 2) { PlayerInfo[igrac][pChar] = 286; } //FBI/ATF
else if(kolicinas == 3) { PlayerInfo[igrac][pChar] = 287; } //National Guard
else if(kolicinas == 4) { PlayerInfo[igrac][pChar] = 228; } //Fire/Ambulance
else if(kolicinas == 5) { PlayerInfo[igrac][pChar] = 113; } //La Cosa Nostra
else if(kolicinas == 6) { PlayerInfo[igrac][pChar] = 120; } //Yakuza
else if(kolicinas == 7) { PlayerInfo[igrac][pChar] = 147; } //Mayor
else if(kolicinas == 8) { PlayerInfo[igrac][pChar] = 294; } //Hitmans
else if(kolicinas == 9) { PlayerInfo[igrac][pChar] = 227; } //News Reporters
else if(kolicinas == 10) { PlayerInfo[igrac][pChar] = 61; } //Taxi Cab Company
else if(kolicinas == 11) { PlayerInfo[igrac][pChar] = 171; } //Driving/Flying School
else if(kolicinas == 12) { PlayerInfo[igrac][pChar] = 110; } // ESL
else if(kolicinas == 13) { PlayerInfo[igrac][pChar] = 104; } // Crips
SetPlayerSkin(igrac, PlayerInfo[igrac][pChar]);
format(string,sizeof(string), "{FF0000}Postavljen si za lidera: %s! | {FFFF80}Admin: %s",  ttext, sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Postavio si {FFFF80}%s za lidera %s", idname, ttext);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 1 i preko 13!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"donator",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 1 || kolicinas <= 3)
{
PlayerInfo[igrac][pPsbiskey] = kolicinas;

SetPVarInt(igrac,"DonatorRank", kolicinas);GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[id][pDonateRank] = price;
new drank[20];
if(GetPVarInt(igrac, "DonatorRank")  == 1) { drank = "Bronzani Donator"; }
else if(GetPVarInt(igrac, "DonatorRank")  == 2) { drank = "Srebreni Donator"; }
else if(GetPVarInt(igrac, "DonatorRank")  == 3) { drank = "Zlatni donator"; }
else { drank = "Nema"; }
SacuvajIgraca(igrac);
format( string, sizeof( string ), "Postavio si igracu %s donator nivo na: {FFABAB}%s.", idname, drank);
SendClientMessage( playerid, 0xFF8080FF, string);
format( string, sizeof( string ), "Postavljen ti je donator nivo na: {BCFF79}%s {80FF00}! Admin: {BCFF79}%s{80FF00}.", drank, sendername);
SendClientMessage(igrac, 0x80FF00FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 1 i preko 3!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"droga",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 1 || kolicinas <= 200)
{
PlayerInfo[igrac][pDrugs] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;
format(string,sizeof(string), "{FF0000}Promijenjena ti je kolicina droge! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si kolicinu droge {FFFF80}%s ", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 1 i preko 200!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"materijali",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 1 || kolicinas <= 2000)
{
PlayerInfo[igrac][pMats] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;
format(string,sizeof(string), "{FF0000}Promijenjena ti je kolicina materijala! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si kolicinu materijala {FFFF80}%s ", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 1 i preko 2000!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"spol",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 0 || kolicinas <= 2)
{
PlayerInfo[igrac][pSex] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;
new drank[20];
if(PlayerInfo[igrac][pSex] == 0) { drank = "Nema"; }
else if(PlayerInfo[igrac][pSex] == 1) { drank = "Musko"; }
else if(PlayerInfo[igrac][pSex] == 2) { drank = "Zensko"; }
format(string,sizeof(string), "{FF0000}Promijenjen ti je spol na : %s! | {FFFF80}Admin: %s",  drank, sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si spol{FFFF80} %s na: %s", idname, drank);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 0 i preko 2!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"rank",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 0 || kolicinas <= 6)
{
PlayerInfo[igrac][pRank] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;

format(string,sizeof(string), "{FF0000}Promijenjen ti je rank na : %d! | {FFFF80}Admin: %s",  kolicinas, sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si rank{FFFF80} %s na: %d", idname, kolicinas);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 0 i preko 6!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"banka",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1338)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 0 || kolicinas <= 1000000)
{
PlayerInfo[igrac][pAccount] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;

format(string,sizeof(string), "{FF0000}Promijenjeno ti je stanje na bankovnom racunu na : %d$! | {FFFF80}Admin: %s",  kolicinas, sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si stanje na bankovnom racunu {FFFF80}%s na: %d$", idname, kolicinas);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 0 i preko 1000000!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"novac",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1338)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 0 || kolicinas <= 1000000)
{
PlayerInfo[igrac][pCash] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;
ResetPlayerCash(igrac);GivePlayerCash(igrac, kolicinas);
format(string,sizeof(string), "{FF0000}Promijenjeno ti je novcano stanje na : %d$! | {FFFF80}Admin: %s",  kolicinas, sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si novcano stanje od {FFFF80}%s na: %d$", idname, kolicinas);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 0 i preko 1000000!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"respekt",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1338)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 0 || kolicinas <= 50)
{
PlayerInfo[igrac][pExp] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;

format(string,sizeof(string), "{FF0000}Promijenjena ti je kolicina respekt poena na : %d! | {FFFF80}Admin: %s",  kolicinas, sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si kolicinu respekt poena od {FFFF80}%s na: %d$", idname, kolicinas);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 0 i preko 50!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"admin",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1338)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 0 || kolicinas <= 1338)
{
PlayerInfo[igrac][pAdmin] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
new arank[20];
if(PlayerInfo[igrac][pAdmin] == 1338) { arank = "Head Admin"; }
else if(PlayerInfo[igrac][pAdmin] == 1337) { arank = "1337 Admin"; }
else if(PlayerInfo[igrac][pAdmin] == 1) { arank = "lvl 1 Admin"; }
else if(PlayerInfo[igrac][pAdmin] == 2) { arank = "lvl 2 Admin"; }
else if(PlayerInfo[igrac][pAdmin] == 3) { arank = "lvl 3 Admin"; }
else if(PlayerInfo[igrac][pAdmin] == 4) { arank = "lvl 4 Admin"; }
else { arank = "[Nema]"; }
printf("Admin %s je unaprijedio %s na lvl %d admina.", sendername, idname, kolicinas);
format(string, sizeof(string), "{6DDB00}Unaprijeden si na poziciju: {BAEE86}%s{6DDB00}| Head Admin: {BAEE86}%s", arank, sendername);
SendClientMessage(igrac, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "{FF5151}Unaprijedio si {FF9999}%s {FF5151}na poziciju {FF9999}%s ", idname,arank);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 0 i preko 1338!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"satiigranja",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1338)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 0 || kolicinas <= 2000)
{
PlayerInfo[igrac][pConnectTime] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;

format(string,sizeof(string), "{FF0000}Promijenjenti je broj sati igranja na: %d! | {FFFF80}Admin: %s",  kolicinas, sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si broj sati igranja od {FFFF80}%s na: %d$", idname, kolicinas);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 0 i preko 2000!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): -[/i]

Pogledaj malo kod i shvatices da si definirao da daje preko administratora a ne preko rcona,

necu ti skroz pomoci jer sve hocete na tanjir ....tamo gde ti je pAdmin stavi kod od Rcona i to je to .Ili  u users tvoj_nick.ini admin level = 0 postavi na 1338 i to je to !

Umjesto ovoga:
if(PlayerInfo[playerid][pAdmin] >= 1338)  
to zamijeniš sa ovime:
if(IsPlayerAdmin(playerid))

Ovo sto kaze ovaj gore, mozes da zamenis ali bolje ti je da jednostavno odes u scriptfiles/racuni i nadjes notepad po imenu tvoga nicka, otvoris to i trazis Adminlevel=0 i to promenis u Adminlevel=1338



www.ekvador-samp.in.rs

Trazim pomocnog skriptera i mappere !!! sve na Ekvador forumu ;)

BIGG RESPECT: System32 â–º jednostavno car, nema mu ravnog, rado pomaze, sve zna.... jednostavno car, nekuzim kako je tako pametan, ali drago mi je da je i da mi pomaze, HVALA ! ;)

Citat: Gospodin poslato Avgust 30, 2011, 12:24:24 POSLE PODNE
Nema veze sto ima hiljadu takvih stvari bitno je da se ljudi trude !!!
Točnoooooo, razmislite malo o ovome ;)

slazem se sa userom laksi nacin ti je otici u scriptsfail naci nick na kojem si se registririo npr..Claude_Speed naÄ'es taj nick uÄ'es u njega i pise ti tamo trece ili cetvrto po redu admin lvl:0.....umjesto nule stavis 1338  i spremis,uÄ'es i igras sa adminom,,,,,ali ako si online i to uradis spremis moras ici relog sa likom tim
Pravim modove i FS-ove javite mi se na PM za drugo samo $$$$$$$$$

Citat: Medis poslato Avgust 22, 2011, 20:32:06 POSLE PODNE
slazem se sa userom laksi nacin ti je otici u scriptsfail naci nick na kojem si se registririo npr..Claude_Speed naÄ'es taj nick uÄ'es u njega i pise ti tamo trece ili cetvrto po redu admin lvl:0.....umjesto nule stavis 1338  i spremis,uÄ'es i igras sa adminom,,,,,ali ako si online i to uradis spremis moras ici relog sa likom tim
Ajd sad jos vas 10 napisite,rekao sam lepo sta onda vas 2-jica imate da ponavljate?

Citat: Medis poslato Avgust 22, 2011, 20:32:06 POSLE PODNE
slazem se sa userom laksi nacin ti je otici u scriptsfail naci nick na kojem si se registririo npr..Claude_Speed naÄ'es taj nick uÄ'es u njega i pise ti tamo trece ili cetvrto po redu admin lvl:0.....umjesto nule stavis 1338  i spremis,uÄ'es i igras sa adminom,,,,,ali ako si online i to uradis spremis moras ici relog sa likom tim

Da. Al' gledaj. Kada ja kupim host, pa da preko Scriptfilesa da stavljam adm, ili mi je jednostavnije sa komandom ?

Citat: user32 poslato Avgust 22, 2011, 19:47:18 POSLE PODNE
Ovo sto kaze ovaj gore, mozes da zamenis ali bolje ti je da jednostavno odes u scriptfiles/racuni i nadjes notepad po imenu tvoga nicka, otvoris to i trazis Adminlevel=0 i to promenis u Adminlevel=1338

Daj čovječe pa to svi znaju nego on tako to kad stavi može ući sa bilo kojom šifrom na bilo koji acc zato šuti...Jer imam i ja Noxicus i sebi sam namjestio i eto sad mi radi nemogu ući sa bilo kojom šifrom već koju sam šifru odabrao na registraciji...

CMD:apostavi(playerid, params[])
{
new string[128], odabir[20], igrac, kolicinas;
new idname[MAX_PLAYER_NAME];

new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(sscanf(params, "s[20]ud",odabir, igrac, kolicinas))
{
if(PlayerInfo[playerid][pAdmin] == 2||PlayerInfo[playerid][pAdmin] == 3 || IsPlayerAdmin(playerid))
{
SCM(playerid, COLOR_GRAD3,"{168BFF}INFO: {959561} /aponisti [ime] [ID/DioImena] [kolicina]");
SCM(playerid, WHITE, "{3EFF9F}Dostupno: {A2FFD0}kpdom(vrijeme), posao, zatvor(vrijeme), mute(vrijeme), kredit(mob), brMoba");
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 4)
{
SCM(playerid, COLOR_GRAD3,"{168BFF}INFO: {959561} /aponisti [ime] [ID/DioImena] [kolicina]");
SCM(playerid, WHITE, "{3EFF9F}Dostupno: {A2FFD0}posao, zatvor(vrijeme), mute(vrijeme), kredit(mob), brMoba");
SCM(playerid, WHITE, "{3EFF9F}Dostupno: {A2FFD0}organizacija, kuca, firma, sfirma, tutorijal");
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 1337)
{
SCM(playerid, COLOR_GRAD3,"{168BFF}INFO: {959561} /aponisti [ime] [ID/DioImena] [kolicina]");
SCM(playerid, WHITE, "{3EFF9F}Dostupno:{A2FFD0} posao, zatvor(vrijeme), mute(vrijeme), kredit(mob), brMoba");
SCM(playerid, WHITE, "{3EFF9F}Dostupno: {A2FFD0}gamemaster, organizacija, kuca, firma, skin, tutorijal");
SCM(playerid, WHITE, "{3EFF9F}Dostupno: {A2FFD0}lider, donator, droga, materijali, spol, rank");
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 1338)
{
SCM(playerid, COLOR_GRAD3,"{168BFF}INFO: {959561} /aponisti [ime] [ID/DioImena] [kolicina]");
SCM(playerid, WHITE, "{3EFF9F}Dostupno: {A2FFD0}posao, zatvor(vrijeme), mute(vrijeme), kredit(mob), brMoba");
SCM(playerid, WHITE, "{3EFF9F}Dostupno: {A2FFD0}organizacija, kuca, firma, skin, tutorijal");
SCM(playerid, WHITE, "{3EFF9F}Dostupno: {A2FFD0}lider, donator, droga, materijali, spol, rank");
SCM(playerid, WHITE, "{3EFF9F}Dostupno: {A2FFD0}banka, novac, respekt, admin, satiigranja, gamemaster");
SCM(playerid, WHITE, "{3EFF9F}Dostupno: {A2FFD0}pgbodovi, paydaypoeni, gamemaster");
return 1;
}
}
else
{
if(strcmp(odabir,"kpdom",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
if(IsPlayerConnected(igrac))
{
if(PlayerInfo[igrac][pJailed] == 2)
{
PlayerInfo[igrac][pJailTime] = kolicinas*60;
SetPlayerPos(igrac,1552.4223632813,-1675.6357421875,16.1953125);
//SetPlayerWorldBounds(igrac,20000.0000,-20000.0000,20000.0000,-20000.0000); //Reset world to player
SetPlayerInterior(igrac, 0);
GetPlayerName(igrac, idname, sizeof(idname));

format(string,sizeof(string), "{FF0000}Promijenjeno ti je vrijeme kazne(KP Dom)! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si {FFFF80}%s {FF0000}vrijeme kazne", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Taj igrac nije zatvoren u KP domu!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
if(strcmp(odabir,"tutorijal",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
SetPVarInt(igrac, "Tutorijal", kolicinas);
}
}
else if(strcmp(odabir,"pgbodovi",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1338)
{
if(IsPlayerConnected(igrac))
{
if (GetPVarInt(playerid, "DonatorRank") >= 1)
{
SetPVarInt(playerid, "PGBodovi", kolicinas);
//GivePlayerCash(igrac, -GetPlayerCash(igrac));
//SetPlayerSkin(igrac, 33);
SacuvajIgraca(igrac);GetPlayerName(igrac, idname, sizeof(idname));
format(string,sizeof(string), "{FF0000}Postavljeni su ti PG poeni na: %d! |{FFFF80}Admin: %s",  kolicinas, sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Postavio si {FFFF80}%s {FF0000}PG poene", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Taj igrac nije donator!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"zatvor",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
if(IsPlayerConnected(igrac))
{
if(PlayerInfo[igrac][pJailed] == 1)
{

PlayerInfo[igrac][pJailTime] = kolicinas*60;
SetPlayerPos(igrac,1552.4223632813,-1675.6357421875,16.1953125);
//SetPlayerWorldBounds(igrac,20000.0000,-20000.0000,20000.0000,-20000.0000); //Reset world to player
SetPlayerInterior(igrac, 0);
GetPlayerName(igrac, idname, sizeof(idname));
TextDrawHideForPlayer(igrac, pritvorvrijeme[igrac]);TextDrawDestroy(pritvorvrijeme[playerid]);
format(string,sizeof(string), "{FF0000}Promijenjeno ti je vrijeme kazne(zatvor)! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si {FFFF80}%s {FF0000}vrijeme kazne", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Taj igrac nije zatvoren!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"mute",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
if(IsPlayerConnected(igrac))
{
if(PlayerInfo[igrac][pMuted] == 1)
{
//PlayerInfo[igrac][pMuted] = 0;
PlayerInfo[igrac][pMuteTime] = kolicinas*60;GetPlayerName(igrac, idname, sizeof(idname));
//DeletePlayer3DTextLabel(igrac, playertextid5);
format(string,sizeof(string), "{FF0000}Promijenjeno ti je vrijeme kazne(mute)! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si {FFFF80}%s {FF0000}vrijeme kazne", idname);SCM(playerid, 0xFF4141FF, string);
TextDrawHideForPlayer(igrac, MuteVrijeme[igrac]);TextDrawDestroy(MuteVrijeme[igrac]);
}
else return SCM(playerid, GREY, "Taj igrac nije usutkan!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"level",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
if(IsPlayerConnected(igrac))
{
PlayerInfo[igrac][pLevel] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;
format(string,sizeof(string), "{FF0000}Promijenjen ti je Level! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si igracu{FFFF80} %s {FF0000}Level", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"posao",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
if(IsPlayerConnected(igrac))
{
SetPVarInt(playerid, "Posao", kolicinas);GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;
format(string,sizeof(string), "{FF0000}Promijenjen ti je Posao! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si igracu{FFFF80} %s {FF0000}posao", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"kredit",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
if(IsPlayerConnected(igrac))
{
PlayerInfo[igrac][pKredit] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;
format(string,sizeof(string), "{FF0000}Promijenjena ti je kolicina Kredita! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si igracu{FFFF80} %s {FF0000}kredit", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"brmoba",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
if(IsPlayerConnected(igrac))
{
PlayerInfo[igrac][pPnumber] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;
format(string,sizeof(string), "{FF0000}Promijenjen ti je broj moba! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si igracu{FFFF80} %s {FF0000}broj moba", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"gamemaster",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1338)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 1 || kolicinas <= 4)
{
PlayerInfo[igrac][pGameMaster] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;
format(string,sizeof(string), "{FF0000}Postavljen ti je status GameMastera! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si status{FFFF80} %s {FF0000}GameMastera", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 1 i preko 4!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"skin",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 1 || kolicinas <= 299)
{
PlayerInfo[igrac][pChar] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
PlayerInfo[igrac][pModel] = kolicinas;
SetPlayerSkin(igrac, kolicinas);
//PlayerInfo[igrac][pJob] = 0;
format(string,sizeof(string), "{FF0000}Promijenjen ti je skin! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si skin{FFFF80} %s {FF0000}na: %d", idname, kolicinas);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 1 i preko 299!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"organizacija",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 1 || kolicinas <= 13)
{
PlayerInfo[igrac][pMember] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
new ttext[120];
if(PlayerInfo[igrac][pMember] == 1) { ttext = "Police Department"; }
else if(PlayerInfo[igrac][pMember] == 2) { ttext = "FBI"; }
else if(PlayerInfo[igrac][pMember] == 3) { ttext = "SWAT"; }
else if(PlayerInfo[igrac][pMember] == 4) { ttext = "MD"; }
else if(PlayerInfo[igrac][pMember] == 5) { ttext = "LCN"; }
else if(PlayerInfo[igrac][pMember] == 6) { ttext = "Yakuza"; }
else if(PlayerInfo[igrac][pMember] == 8) { ttext = "Hitman"; }
else if(PlayerInfo[igrac][pMember] == 9) { ttext = "CNN"; }
else if(PlayerInfo[igrac][pMember] == 10) { ttext = "Taxi"; }
else if(PlayerInfo[igrac][pMember] == 11) { ttext = "Licensera"; }
else if( PlayerInfo[igrac][pMember] == 12) { ttext = "Mara Salvatrucha(MS13)"; }
else if(PlayerInfo[igrac][pMember] == 13) { ttext = "Crips"; }
else {ttext = "[Nema]";}
format(string,sizeof(string), "{FF0000}Postavljena ti je organizacija na %s ! | {FFFF80}Admin: %s", ttext, sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si organizaciju igracu {FFFF80}%s na: %s ", idname, ttext);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 1 i preko 13!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"kuca",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 1 || kolicinas <= 1000)
{
PlayerInfo[igrac][pPhousekey] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;
format(string,sizeof(string), "{FF0000}Postavljena ti je kuca! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si kljuc kuce {FFFF80}%s ", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 1 i preko 1000!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"firma",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 1 || kolicinas <= 200)
{
PlayerInfo[igrac][pPbiskey] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;
format(string,sizeof(string), "{FF0000}Postavljena ti je firma! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si kljuc firme {FFFF80}%s ", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 1 i preko 200!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"sfirma",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 1 || kolicinas <= 200)
{
PlayerInfo[igrac][pPsbiskey] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;
format(string,sizeof(string), "{FF0000}Postavljena ti je firma! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si kljuc firme {FFFF80}%s ", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 1 i preko 200!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"lider",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 1 || kolicinas <= 13)
{
PlayerInfo[igrac][pLeader] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
PlayerInfo[igrac][pMember] = 0;PlayerInfo[igrac][pRank] = 6;
new ttext[120];
if(PlayerInfo[igrac][pLeader] == 1) { ttext = "Police Department"; }
else if(PlayerInfo[igrac][pLeader] == 2) { ttext = "FBI"; }
else if(PlayerInfo[igrac][pLeader] == 3) { ttext = "SWAT"; }
else if(PlayerInfo[igrac][pLeader] == 4) { ttext = "MD"; }
else if(PlayerInfo[igrac][pLeader] == 5) { ttext = "LCN"; }
else if(PlayerInfo[igrac][pLeader] == 6) { ttext = "Yakuza"; }
else if(PlayerInfo[igrac][pLeader] == 7) { ttext = "Gradonacelnik"; }
else if(PlayerInfo[igrac][pLeader] == 8) { ttext = "Hitman"; }
else if(PlayerInfo[igrac][pLeader] == 9) { ttext = "CNN"; }
else if(PlayerInfo[igrac][pLeader] == 10) { ttext = "Taxi"; }
else if(PlayerInfo[igrac][pLeader] == 11) { ttext = "Licensera"; }
else if( PlayerInfo[igrac][pLeader] == 12) { ttext = "Mara Salvatrucha(MS13)"; }
else if(PlayerInfo[igrac][pLeader] == 13) { ttext = "Crips"; }
else {ttext = "[Nema]";}
if(kolicinas == 0) { PlayerInfo[igrac][pChar] = 0; }
else if(kolicinas == 1) { PlayerInfo[igrac][pChar] = 288; } //Police Force
else if(kolicinas == 2) { PlayerInfo[igrac][pChar] = 286; } //FBI/ATF
else if(kolicinas == 3) { PlayerInfo[igrac][pChar] = 287; } //National Guard
else if(kolicinas == 4) { PlayerInfo[igrac][pChar] = 228; } //Fire/Ambulance
else if(kolicinas == 5) { PlayerInfo[igrac][pChar] = 113; } //La Cosa Nostra
else if(kolicinas == 6) { PlayerInfo[igrac][pChar] = 120; } //Yakuza
else if(kolicinas == 7) { PlayerInfo[igrac][pChar] = 147; } //Mayor
else if(kolicinas == 8) { PlayerInfo[igrac][pChar] = 294; } //Hitmans
else if(kolicinas == 9) { PlayerInfo[igrac][pChar] = 227; } //News Reporters
else if(kolicinas == 10) { PlayerInfo[igrac][pChar] = 61; } //Taxi Cab Company
else if(kolicinas == 11) { PlayerInfo[igrac][pChar] = 171; } //Driving/Flying School
else if(kolicinas == 12) { PlayerInfo[igrac][pChar] = 110; } // ESL
else if(kolicinas == 13) { PlayerInfo[igrac][pChar] = 104; } // Crips
SetPlayerSkin(igrac, PlayerInfo[igrac][pChar]);
format(string,sizeof(string), "{FF0000}Postavljen si za lidera: %s! | {FFFF80}Admin: %s",  ttext, sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Postavio si {FFFF80}%s za lidera %s", idname, ttext);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 1 i preko 13!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"donator",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 1 || kolicinas <= 3)
{
PlayerInfo[igrac][pPsbiskey] = kolicinas;

SetPVarInt(igrac,"DonatorRank", kolicinas);GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[id][pDonateRank] = price;
new drank[20];
if(GetPVarInt(igrac, "DonatorRank")  == 1) { drank = "Bronzani Donator"; }
else if(GetPVarInt(igrac, "DonatorRank")  == 2) { drank = "Srebreni Donator"; }
else if(GetPVarInt(igrac, "DonatorRank")  == 3) { drank = "Zlatni donator"; }
else { drank = "Nema"; }
SacuvajIgraca(igrac);
format( string, sizeof( string ), "Postavio si igracu %s donator nivo na: {FFABAB}%s.", idname, drank);
SendClientMessage( playerid, 0xFF8080FF, string);
format( string, sizeof( string ), "Postavljen ti je donator nivo na: {BCFF79}%s {80FF00}! Admin: {BCFF79}%s{80FF00}.", drank, sendername);
SendClientMessage(igrac, 0x80FF00FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 1 i preko 3!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"droga",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 1 || kolicinas <= 200)
{
PlayerInfo[igrac][pDrugs] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;
format(string,sizeof(string), "{FF0000}Promijenjena ti je kolicina droge! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si kolicinu droge {FFFF80}%s ", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 1 i preko 200!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"materijali",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 1 || kolicinas <= 2000)
{
PlayerInfo[igrac][pMats] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;
format(string,sizeof(string), "{FF0000}Promijenjena ti je kolicina materijala! | {FFFF80}Admin: %s",  sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si kolicinu materijala {FFFF80}%s ", idname);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 1 i preko 2000!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"spol",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 0 || kolicinas <= 2)
{
PlayerInfo[igrac][pSex] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;
new drank[20];
if(PlayerInfo[igrac][pSex] == 0) { drank = "Nema"; }
else if(PlayerInfo[igrac][pSex] == 1) { drank = "Musko"; }
else if(PlayerInfo[igrac][pSex] == 2) { drank = "Zensko"; }
format(string,sizeof(string), "{FF0000}Promijenjen ti je spol na : %s! | {FFFF80}Admin: %s",  drank, sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si spol{FFFF80} %s na: %s", idname, drank);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 0 i preko 2!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"rank",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 0 || kolicinas <= 6)
{
PlayerInfo[igrac][pRank] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;

format(string,sizeof(string), "{FF0000}Promijenjen ti je rank na : %d! | {FFFF80}Admin: %s",  kolicinas, sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si rank{FFFF80} %s na: %d", idname, kolicinas);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 0 i preko 6!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"banka",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1338)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 0 || kolicinas <= 1000000)
{
PlayerInfo[igrac][pAccount] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;

format(string,sizeof(string), "{FF0000}Promijenjeno ti je stanje na bankovnom racunu na : %d$! | {FFFF80}Admin: %s",  kolicinas, sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si stanje na bankovnom racunu {FFFF80}%s na: %d$", idname, kolicinas);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 0 i preko 1000000!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"novac",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1338)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 0 || kolicinas <= 1000000)
{
PlayerInfo[igrac][pCash] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;
ResetPlayerCash(igrac);GivePlayerCash(igrac, kolicinas);
format(string,sizeof(string), "{FF0000}Promijenjeno ti je novcano stanje na : %d$! | {FFFF80}Admin: %s",  kolicinas, sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si novcano stanje od {FFFF80}%s na: %d$", idname, kolicinas);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 0 i preko 1000000!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"respekt",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1338)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 0 || kolicinas <= 50)
{
PlayerInfo[igrac][pExp] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;

format(string,sizeof(string), "{FF0000}Promijenjena ti je kolicina respekt poena na : %d! | {FFFF80}Admin: %s",  kolicinas, sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si kolicinu respekt poena od {FFFF80}%s na: %d$", idname, kolicinas);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 0 i preko 50!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"admin",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1338)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 0 || kolicinas <= 1338)
{
PlayerInfo[igrac][pAdmin] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
new arank[20];
if(PlayerInfo[igrac][pAdmin] == 1338) { arank = "Head Admin"; }
else if(PlayerInfo[igrac][pAdmin] == 1337) { arank = "1337 Admin"; }
else if(PlayerInfo[igrac][pAdmin] == 1) { arank = "lvl 1 Admin"; }
else if(PlayerInfo[igrac][pAdmin] == 2) { arank = "lvl 2 Admin"; }
else if(PlayerInfo[igrac][pAdmin] == 3) { arank = "lvl 3 Admin"; }
else if(PlayerInfo[igrac][pAdmin] == 4) { arank = "lvl 4 Admin"; }
else { arank = "[Nema]"; }
printf("Admin %s je unaprijedio %s na lvl %d admina.", sendername, idname, kolicinas);
format(string, sizeof(string), "{6DDB00}Unaprijeden si na poziciju: {BAEE86}%s{6DDB00}| Head Admin: {BAEE86}%s", arank, sendername);
SendClientMessage(igrac, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "{FF5151}Unaprijedio si {FF9999}%s {FF5151}na poziciju {FF9999}%s ", idname,arank);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 0 i preko 1338!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
else if(strcmp(odabir,"satiigranja",true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1338)
{
if(IsPlayerConnected(igrac))
{
if(kolicinas >= 0 || kolicinas <= 2000)
{
PlayerInfo[igrac][pConnectTime] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname));
//PlayerInfo[igrac][pJob] = 0;

format(string,sizeof(string), "{FF0000}Promijenjenti je broj sati igranja na: %d! | {FFFF80}Admin: %s",  kolicinas, sendername);SCM(igrac, 0xFF4141FF, string);
format(string,sizeof(string), "{FF0000}Promijenio si broj sati igranja od {FFFF80}%s na: %d$", idname, kolicinas);SCM(playerid, 0xFF4141FF, string);
}
else return SCM(playerid, GREY, "Ne idi ispod 0 i preko 2000!");
}
else return SCM(playerid, GREY, "Taj igrac nije online!");
}
else return SCM(playerid, GREY, "Nisi ovlasten!");
}
}
return 1;
}

 if(PlayerInfo[playerid][pAdmin] >= 1338)

zamjeni sa

if(PlayerInfo[playerid][pAdmin] >= 1338 || IsPlayerAdmin(playerid))

i onda ces moci da postavis nekome admina i kad si 1338 i kad si RCON

Ovo sto su ti rekli da udjes u racune bla bla,nemoj.

Server ima encrypt ili ti hash,tako da sta god izmijenis u racunu,nece moci da udju,pisace da im nije dobra sifra.


Server IP: 193.192.58.82:7782
Forum: www.balkan-underline.info