SHARE
TWEET

az

KnifeX May 12th, 2020 (edited) 1,258 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. AzStaffRanks(rank){
  2.     new output[128];
  3.     if(rank==8){
  4.         output="Murderer";
  5.     }else if(rank==9){
  6.         output="Pro Killer";
  7.     }else if(rank==10){
  8.         output="Pro Gangster";
  9.     }else if(rank==11){
  10.         output="Organizer Heist";
  11.     }else if(rank==12){
  12.         output="Gangsters Head";
  13.     }else if(rank==13){
  14.         output="Gangster Co-Leader";
  15.     }else if(rank==14){
  16.         output="Gangster Leader";
  17.     }else if(rank==15){
  18.         output="Supreme Gangster";
  19.     }else if(rank>15){
  20.         output="Clan Creator";
  21.     }
  22.    
  23.     return output;
  24. }
  25.  
  26. forward MessageToStaffAz(const member[],level,const message[]);
  27. public MessageToStaffAz(const member[],level,const message[])
  28. {
  29.     new azmsg[128];
  30.     for(new i = 0; i < MAX_PLAYERS; i++) {
  31.     if(IsPlayerConnected(i) == 1)
  32.         if(PlayerInfo[i][Az] >= 8) {
  33.             if(PlayerInfo[i][LoggedIn] == 1) {
  34.             format(azmsg,128,"{00008B}[Az] - Staff Chat (%s) %s: {FFFF00}%s",AzStaffRanks(level),member,message);
  35.             SendClientMessage(i,-1,azmsg);}
  36.         }
  37.     }
  38. }
  39.  
  40. CMD:azo(playerid, params[]){
  41.     if(!PlayerInfo[playerid][LoggedIn]) return SendClientMessage(playerid, red, "ERROR: You have to be LoggedIn to use this command.");
  42.     if(!PlayerInfo[playerid][Az]) return SendClientMessage(playerid, red, "ERROR: You have to be Az Member to use this command.");
  43.     if(PlayerInfo[playerid][Az] < 8) return SendClientMessage(playerid, red, "ERROR: You have to be Az Member rank 8+ to use this command.");
  44.     if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /azo [message]");
  45.     new pyname[64];
  46.     GetPlayerName(playerid,pyname,sizeof(pyname));
  47.     MessageToStaffAz(pyname,PlayerInfo[playerid][Az],params);
  48.     return 1;
  49. }
  50.  
  51. CMD:azwh(playerid,params[]) {
  52.     #pragma unused params
  53.     if(!PlayerInfo[playerid][Az]) return SendClientMessage(playerid, red, "ERROR: You have to be Az Member to use this command.");
  54.     TeleTimer[playerid] = SetTimerEx("ttimer", 1000, true, "i",playerid);
  55.     tseconds[playerid] = 1;
  56.     format(tstring,45,"You Must wait %d seconds before teleporting", tseconds[playerid]-1);
  57.     if(PlayerInfo[playerid][Level] == 0) SendClientMessage(playerid,0x00FFFFAA, tstring);
  58.     if(PlayerInfo[playerid][Jailed] == 1) return SendClientMessage(playerid,0xFF0000FF,"You can't use this command in jail.");
  59.     Tx[playerid] =1381.5;
  60.     Ty[playerid] =-16.7;
  61.     Tz[playerid] =1000.9;
  62.     Ti[playerid] = 1;
  63.     new string[128];
  64.     new dsname[MAX_PLAYER_NAME];
  65.     format(telestring,43,"~b~~h~ Az Ware House");
  66.     GetPlayerName(playerid, dsname, sizeof(dsname));
  67.     format(string, sizeof(string), "[TELE]: %s has just Teleport To Ware House", dsname);
  68.     SendClientMessageToAll(0x7FFFD4AA, string);
  69.     CMDMessageToAz(playerid,"AzWH");
  70.     return 1;
  71. }
  72.  
  73. CMD:azbase(playerid,params[]) {
  74.     #pragma unused params
  75.     if(!PlayerInfo[playerid][Az]) return SendClientMessage(playerid, red, "ERROR: You have to be Az Member to use this command.");
  76.     TeleTimer[playerid] = SetTimerEx("ttimer", 1000, true, "i",playerid);
  77.     tseconds[playerid] = 1;
  78.     format(tstring,45,"You Must wait %d seconds before teleporting", tseconds[playerid]-1);
  79.     if(PlayerInfo[playerid][Level] == 0) SendClientMessage(playerid,0x00FFFFAA, tstring);
  80.     if(PlayerInfo[playerid][Jailed] == 1) return SendClientMessage(playerid,0xFF0000FF,"You can't use this command in jail.");
  81.     Tx[playerid] =-978.0;
  82.     Ty[playerid] =1024.9;
  83.     Tz[playerid] =1345.0;
  84.     Ti[playerid] = 10;
  85.     new string[128];
  86.     new dsname[MAX_PLAYER_NAME];
  87.     format(telestring,43,"~b~~h~ Az Base");
  88.     GetPlayerName(playerid, dsname, sizeof(dsname));
  89.     format(string, sizeof(string), "[TELE]: %s has just Teleport To Base", dsname);
  90.     SendClientMessageToAll(0x7FFFD4AA, string);
  91.     CMDMessageToAz(playerid,"AzBase");
  92.     return 1;
  93. }
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