Advertisement
jlalt

wew

Apr 13th, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.99 KB | None | 0 0
  1. CMD:setalltmskin(playerid, params[]) {
  2.     if(PlayerInfo[playerid][TM] >= 5)
  3.     {
  4.         if(isnull(params))
  5.         {
  6.             SendClientMessage(playerid, -1, "Usage: /setalltmskin [skinID]");
  7.         }
  8.         else
  9.         {
  10.             new SkinID = strval(params);
  11.             for(new i = 0; i < MAX_PLAYERS; i++)
  12.             {
  13.                 if(IsPlayerConnected(i) && PlayerInfo[i][TM])
  14.                 {
  15.                     SetPlayerSkin(i, SkinID);
  16.                 }
  17.             }
  18.             CMDMessageToTM(playerid,"SETALLTMSKIN");
  19.         }
  20.     }
  21.     else
  22.     {
  23.         SendClientMessage(playerid,red,"ERROR: You need to be a The Mafia rank 5+ to use this command!");
  24.     }
  25.     return 1;
  26. }
  27. CMD:setalltmcolor(playerid, params[]) {
  28.     if(PlayerInfo[playerid][TM] >= 5)
  29.     {
  30.         for(new i = 0; i < MAX_PLAYERS; i++)
  31.         {
  32.             if(IsPlayerConnected(i) && PlayerInfo[i][TM])          
  33.             {
  34.                     SetPlayerColor(i, 0xAFAFAFAA);
  35.             }
  36.         }
  37.         CMDMessageToTM(playerid,"SETALLTMCOLOR");
  38.     }
  39.     else
  40.     {
  41.         SendClientMessage(playerid,red,"ERROR: You need to be a The Mafia rank 5+ to use this command!");
  42.     }
  43.     return 1;
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement