Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:tmm(playerid, params[]) {
- if(PlayerInfo[playerid][TM] < 4) return SendClientMessage(playerid,red,"ERROR: You need to be 4 Level TM Member to use this command");
- if(isnull(params)) return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /tmm [text]");
- new ystring[150];
- if(PlayerInfo[playerid][TM] == 7)
- format(ystring, sizeof(ystring), "{FF0000}[TheMafia Managament Chat] {3333ff}|GodFather %s|: {00FF00}%s", PlayerName2(playerid), params[0] );
- if(PlayerInfo[playerid][TM] == 6)
- format(ystring, sizeof(ystring), "{FF0000}[TheMafia Managament Chat] {00FFFF}|Consigliere %s|: {00FF00}%s", PlayerName2(playerid), params[0] );
- if(PlayerInfo[playerid][TM] == 5)
- format(ystring, sizeof(ystring), "{FF0000}[TheMafia Managament Chat] {C0C0C0}|Underboss %s|: {00FF00}%s", PlayerName2(playerid), params[0] );
- if(PlayerInfo[playerid][TM] == 4)
- format(ystring, sizeof(ystring), "{FF0000}[TheMafia Managament Chat] {FFFF00}|Caporegime %s|: {00FF00}%s", PlayerName2(playerid), params[0] );
- for(new i, j = GetMaxPlayers(); i < j; i++)
- {
- if(!IsPlayerConnected(i)) continue;
- if(PlayerInfo[i][TM] < 4) continue;
- SendClientMessage(i, -1, ystring);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement