Advertisement
jlalt

wew

Apr 9th, 2017
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.22 KB | None | 0 0
  1. CMD:tmm(playerid, params[]) {
  2.     if(PlayerInfo[playerid][TM] < 4) return SendClientMessage(playerid,red,"ERROR: You need to be 4 Level TM Member to use this command");
  3.     if(isnull(params)) return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /tmm [text]");
  4.     new ystring[150];
  5.     if(PlayerInfo[playerid][TM] == 7)
  6.     format(ystring, sizeof(ystring), "{FF0000}[TheMafia Managament Chat] {3333ff}|GodFather %s|: {00FF00}%s", PlayerName2(playerid), params[0] );
  7.     if(PlayerInfo[playerid][TM] == 6)
  8.     format(ystring, sizeof(ystring), "{FF0000}[TheMafia Managament Chat] {00FFFF}|Consigliere %s|: {00FF00}%s", PlayerName2(playerid), params[0] );
  9.     if(PlayerInfo[playerid][TM] == 5)
  10.     format(ystring, sizeof(ystring), "{FF0000}[TheMafia Managament Chat] {C0C0C0}|Underboss %s|: {00FF00}%s", PlayerName2(playerid), params[0] );
  11.     if(PlayerInfo[playerid][TM] == 4)
  12.     format(ystring, sizeof(ystring), "{FF0000}[TheMafia Managament Chat] {FFFF00}|Caporegime %s|: {00FF00}%s", PlayerName2(playerid), params[0] );
  13.     for(new i, j = GetMaxPlayers(); i < j; i++)
  14.     {
  15.         if(!IsPlayerConnected(i)) continue;
  16.         if(PlayerInfo[i][TM] < 4) continue;
  17.         SendClientMessage(i, -1, ystring);
  18.     }
  19.     return 1;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement