daily pastebin goal
17%
SHARE
TWEET

/acover

a guest Jan 20th, 2018 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. new aCoverSkins[] = { 250, 7, 6, 21, 23, 28, 29 }; //6
  2. new aCoverNames[] = { "FreakZ0r.", "G0upWords[].", "RamZes.ECSE", "m0mbi.DaUCuCit", "UrZok.2k18", "EuroKill.EMBLEMA", "RupeTotAdv."};
  3. new aRandTagg[] = { "Emblema", "Jupanu", "G0LANU", "2k18", "DauCuCit", "Sheful", "Bombardieru" };
  4. new aRandName[] = { "Mari0zZz", "EscapeM3", "BadWords[]", "EskoleR", "x[]Trib4l", "Bershka[]", "L0okAtMe" };
  5. new LastLvl[MAX_PLAYERS];
  6.  
  7. CMD:acover(playerid, params[], Skin, RandLvl, strname[64]) {
  8.     if(PlayerLogged[playerid] == 0) return SCM(playerid, COLOR_WHITE, "Nu esti conectat.");
  9.     if(PlayerInfo[playerid][pAdmin] < 4) return AdminOnly(playerid, 4);
  10.     if(ACover[playerid] == 0) {
  11.         RandLvl = random(5);
  12.         LastLvl[playerid] = PlayerInfo[playerid][pLevel];
  13.         PlayerInfo[playerid][pLevel] = RandLvl;
  14.         new randomname = random(sizeof(aCoverNames));
  15.         foreach(new SearchUnderCoverName : Player) {
  16.             if(GetName(SearchUnderCoverName) == aCoverNames[randomname]) {
  17.                 format(strname, sizeof(strname), "%s.%s", aRandName[randomname], aRandTagg[randomname]);
  18.                 SetPlayerName(playerid, strname);
  19.             }
  20.             else if(GetName(SearchUnderCoverName) != aCoverNames[randomname]) SetPlayerName(playerid, aCoverNames[randomname]);
  21.         }
  22.         SetPlayerSkin(playerid, aCoverSkins[randomname]);
  23.         SetPlayerScore(playerid, RandLvl);
  24.         SCME(playerid, 0x3AE8E8FF, "[Admin Undercover started @ Name: %s, Skin: %d, Level: %d]", GetName[playerid], aCoverSkins[randomname], RandLvl);
  25.         format(PString, sizeof(PString), "An admin started admin undercover @ Name: %s, Skin: %d, Level: %d.", GetName[playerid], aCoverSkins[randomname], RandLvl);
  26.         ABroadCast(0xD95D5DFF, PString, 1);
  27.     } else if(ACover[playerid] == 1) {
  28.         SetPlayerName(playerid, PlayerInfo[playerid][pname]);
  29.         SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
  30.         SetPlayerScore(playerid, LastLvl[playerid]);
  31.         SCM(playerid, 0x3AE8E8FF, "[Admin Undercover stopped, stats restored]");
  32.         format(PString, sizeof(PString), "Admin %s stopped admin undercover.");
  33.         ABroadCast(0xD95D5DFF, PString, 1);
  34.     }
  35.     return 1;
  36. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top