Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:setalltmskin(playerid, params[]) {
- if(PlayerInfo[playerid][TM] >= 5)
- {
- if(isnull(params))
- {
- SendClientMessage(playerid, -1, "Usage: /setalltmskin [skinID]");
- }
- else
- {
- new SkinID = strval(params);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && PlayerInfo[i][TM])
- {
- SetPlayerSkin(i, SkinID);
- }
- }
- CMDMessageToTM(playerid,"SETALLTMSKIN");
- }
- }
- else
- {
- SendClientMessage(playerid,red,"ERROR: You need to be a The Mafia rank 5+ to use this command!");
- }
- return 1;
- }
- CMD:setalltmcolor(playerid, params[]) {
- if(PlayerInfo[playerid][TM] >= 5)
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && PlayerInfo[i][TM])
- {
- SetPlayerColor(i, 0xAFAFAFAA);
- }
- }
- CMDMessageToTM(playerid,"SETALLTMCOLOR");
- }
- else
- {
- SendClientMessage(playerid,red,"ERROR: You need to be a The Mafia rank 5+ to use this command!");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement