Jump to content

wick20051

Membru
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

359 profile views

wick20051's Achievements

Newbie

Newbie (1/14)

  • Dedicated Rare
  • First Post
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. cmd:setadmin(playerid, params[]) { //if(!IsAdmin(playerid, 6)) //return SendClientMessage(playerid, COLOR_LGREEN, AdminOnly); extract params -> new player:id, adminlevel; else return SendClientMessage(playerid, COLOR_GREY, "Sintaxa: {FFFFFF}/setadmin <playerid/name> <Admin Level>"); if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_GREY, "That user is not connected."); if(!IsPlayerLogged(id)) return SendClientMessage(playerid, COLOR_GREY, "Player not logged."); if(adminlevel>7) return true; if(PlayerInfo[id][pAdmin]>6&&id!=playerid) return true; PlayerInfo[id][pAdmin] = adminlevel; SCMf(id, COLOR_YELLOW, "You've been promoted to level %d admin, by %s", adminlevel, GetName(playerid)); format(gString, 128, "Admin %s set %s's admin level to %d.", GetName(playerid),GetName(id),adminlevel); SendAdminMessage(COLOR_YELLOW,gString,4); Iter_Remove(Staff<HELPER>, id); Iter_Add(Staff<ADMIN>, id); finishAchievement(id, 30); if !adminlevel *then { PlayerInfo[id][pAW] = 0; UpdateVar(id, "AW", 0); if(SpecFaction[id]) { if(Iter_Contains(faction_players<SpecFaction[id]>, id)) Iter_Remove(faction_players<SpecFaction[id]>, id); SpecFaction[id] = 0; } StopFly(id); UsedFly[id] = 0; SetPlayerHealthEx(playerid, 100); Iter_Remove(faction_leaders, id); Iter_Remove(Staff<ADMIN>, id); if(PlayerInfo[id][pHelper]) Iter_Add(Staff<HELPER>, id); TextDrawHideForPlayer(playerid, ReportTD); } else if(Iter_Count(report_players)) TextDrawShowForPlayer(playerid, ReportTD); UpdateVar(id, "Admin", adminlevel); return true; } stock getCityEx(playerid) { if(IsPlayerInArea(playerid, -806, -3000, 3000.015625, 461.03515625)) return 1; else if(IsPlayerInArea(playerid, -805.015625, 460, 3000.00390625, 3000)) return 2; else if(IsPlayerInArea(playerid, -3000, -3000, -806, 3000)) return 3; return 0; } stock get_city_(Float:x,Float:y) { new const City[4][8] = {{"Unknown"}, {"LS"}, {"LV"}, {"SF"}}; if(x>=-806&&x<=-3000&&y>=3000.015625&&y<=461.03515625) return City[1]; else if(x>=-805.015625&&x<=460&&y>=3000.00390625&&y<=3000) return City[2]; else if(x>=-3000&&x<=-3000&&y>=-806&&y<=3000) return City[3]; return City[0]; } stock GetCity(playerid) { new const City[4][8] = {{"Unknown"}, {"LS"}, {"LV"}, {"SF"}}; return City[getCityEx(playerid)]; } inlocuieste "cmd:setadmin(playerid, params[]) { //if(!IsAdmin(playerid, 6)) //return SendClientMessage(playerid, COLOR_LGREEN, AdminOnly);" cu cmd:setadmin(playerid, params[]) { if(!IsAdmin(playerid, 6)) return SendClientMessage(playerid, COLOR_LGREEN, AdminOnly); si asa rezolvi, o sa poti da admin decat daca ai admin 6, succes.
  2. Pentru ca nu l ai pornit corect, eu l am pornit corect si imi merge
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.