04.02.2012, 13:33
When we go to a Linux server month we IDs players. I want to give yourself what level to another player. I do not know Is it up to a command or something else because I sscanf.Ovdje skin is the most recent command which monthly IDs players. would like to help me.
Im from Bosnia and Hercegovina.
Im from Bosnia and Hercegovina.
Код:
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} /apostavi [ime] [ID/DeoImena] [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} /apostavi [ime] [ID/DeoImena] [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] == 5) { SCM(playerid, COLOR_GRAD3,"{168BFF}INFO: {959561} /apostavi [ime] [ID/DeoImena] [kolicina]"); SCM(playerid, WHITE, "{3EFF9F}Dostupno:{A2FFD0} posao, zatvor(vrijeme), mute(vrijeme), kredit(mob), brMoba"); SCM(playerid, WHITE, "{3EFF9F}Dostupno: {A2FFD0}GameSage, organizacija, kuca, firma, skin, tutorijal"); SCM(playerid, WHITE, "{3EFF9F}Dostupno: {A2FFD0}lider, donator, droga, materijali, spol, rank, level"); return 1; } if(PlayerInfo[playerid][pAdmin] == 6) { SCM(playerid, COLOR_GRAD3,"{168BFF}INFO: {959561} /apostavi [ime] [ID/DeoImena] [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, GameSage"); SCM(playerid, WHITE, "{3EFF9F}Dostupno: {A2FFD0}Goldi, level, GameSage"); 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,"Goldi",true) == 0) { if(PlayerInfo[playerid][pAdmin] >= 6) { if(IsPlayerConnected(igrac)) { SetPVarInt(playerid, "Goldi", kolicinas); SacuvajIgraca(igrac);GetPlayerName(igrac, idname, sizeof(idname)); format(string,sizeof(string), ""SVIJETLOPLAVA"Postavljeni su ti Goldi na: "BIJELA"%d"SVIJETLOPLAVA"! |Admin: {FFFFFF}%s", kolicinas, sendername);SCM(igrac, 0xFF4141FF, string); format(string,sizeof(string), "Postavio si %s Goldi", idname);SCM(playerid, COLOR_LIGHTBLUE, string); } 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); 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][pMuteTime] = kolicinas*60;GetPlayerName(igrac, idname, sizeof(idname)); 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] >= 5) { 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,"GameSage",true) == 0) { if(PlayerInfo[playerid][pAdmin] >= 6) { if(IsPlayerConnected(igrac)) { if(kolicinas >= 1 || kolicinas <= 3) { PlayerInfo[igrac][pGameSage] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname)); //PlayerInfo[igrac][pJob] = 0; format(string,sizeof(string), "{FF0000}Postavljen ti je status GameSagea! | {FFFF80}Admin: %s", sendername);SCM(igrac, 0xFF4141FF, string); format(string,sizeof(string), "{FF0000}Promijenio si status{FFFF80} %s {FF0000}GameSagea", idname);SCM(playerid, 0xFF4141FF, 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,"skin",true) == 0) { if(PlayerInfo[playerid][pAdmin] >= 5) { if(IsPlayerConnected(igrac)) { if(kolicinas >= 1 || kolicinas <= 299) { PlayerInfo[igrac][pChar] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname)); PlayerInfo[igrac][pModel] = kolicinas; SetPlayerSkin(igrac, kolicinas); 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: %s", 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 = "SK"; } else if( PlayerInfo[igrac][pMember] == 12) { ttext = "MS"; } else if(PlayerInfo[igrac][pMember] == 13) { ttext = "ESL"; } 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)); 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] >= 5) { 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 = "Los Santos Police Department"; } else if(PlayerInfo[igrac][pLeader] == 2) { ttext = "Federal Bureau of Investigation"; } else if(PlayerInfo[igrac][pLeader] == 3) { ttext = "Special Weapons And Tactics"; } else if(PlayerInfo[igrac][pLeader] == 4) { ttext = "New Generation Racers"; } else if(PlayerInfo[igrac][pLeader] == 5) { ttext = "The Italian Mafia"; } else if(PlayerInfo[igrac][pLeader] == 6) { ttext = "Yakuza"; } else if(PlayerInfo[igrac][pLeader] == 7) { ttext = "Grove Street Family"; } else if(PlayerInfo[igrac][pLeader] == 8) { ttext = "Hitman Agencija"; } else if(PlayerInfo[igrac][pLeader] == 9) { ttext = "Cable News Network"; } else if(PlayerInfo[igrac][pLeader] == 10) { ttext = "Taxi Kompanija"; } else if(PlayerInfo[igrac][pLeader] == 11) { ttext = "UnderGround Racers"; } else if( PlayerInfo[igrac][pLeader] == 12) { ttext = "Bad Boys"; } else if(PlayerInfo[igrac][pLeader] == 13) { ttext = "East Side Locos"; } else if(PlayerInfo[igrac][pLeader] == 14) { ttext = "Medical Department"; } 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] = 165; } //FBI/ATF else if(kolicinas == 3) { PlayerInfo[igrac][pChar] = 166; } //National Guard else if(kolicinas == 4) { PlayerInfo[igrac][pChar] = 29; } //NGR else if(kolicinas == 5) { PlayerInfo[igrac][pChar] = 113; } //La Cosa Nostra else if(kolicinas == 6) { PlayerInfo[igrac][pChar] = 294; } //Yakuza else if(kolicinas == 7) { PlayerInfo[igrac][pChar] = 270; } //gsf else if(kolicinas == 8) { PlayerInfo[igrac][pChar] = 299; } //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] = 101; } //UR else if(kolicinas == 12) { PlayerInfo[igrac][pChar] = 292; } // ms13 else if(kolicinas == 13) { PlayerInfo[igrac][pChar] = 115; } // ESL else if(kolicinas == 14) { PlayerInfo[igrac][pChar] = 274; } // ESL SetPlayerSkin(igrac, PlayerInfo[igrac][pChar]); format(string,sizeof(string), "Postavljen si za lidera organizacije:{FFFFFF} %s! "SVIJETLOPLAVA"| Admin: {FFFFFF}%s", ttext, sendername);SCM(igrac, COLOR_LIGHTBLUE, string); format(string,sizeof(string), "Postavio si {FFFFFF}%s"SVIJETLOPLAVA" za lidera "BIJELA"%s", idname, ttext);SCM(playerid, COLOR_LIGHTBLUE, string); } else return SCM(playerid, GREY, "Ne idi ispod 1 i preko 14!"); } 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] >= 5) { if(IsPlayerConnected(igrac)) { if(kolicinas >= 1 || kolicinas <= 3) { PlayerInfo[igrac][pPsbiskey] = kolicinas; SetPVarInt(igrac,"DonatorRank", kolicinas);GetPlayerName(igrac, idname, sizeof(idname)); 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] >= 5) { if(IsPlayerConnected(igrac)) { if(kolicinas >= 1 || kolicinas <= 200) { PlayerInfo[igrac][pDrugs] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname)); 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] >= 5) { 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] >= 5) { 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] >= 5) { 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] >= 6) { 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] >= 6) { 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] >= 6) { 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] >= 6 || IsPlayerAdmin(playerid)) { if(IsPlayerConnected(igrac)) { if(kolicinas >= 0 || kolicinas <= 6) { PlayerInfo[igrac][pAdmin] = kolicinas;GetPlayerName(igrac, idname, sizeof(idname)); new arank[20]; if(PlayerInfo[igrac][pAdmin] == 6) { arank = "Head Admin"; } else if(PlayerInfo[igrac][pAdmin] == 5) { arank = "5 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 6!"); } 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] >= 6) { 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; }