KaLu17

[pawno.pl] -> #24795

Mar 19th, 2014
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.73 KB | None | 0 0
  1. CMD:ooc(playerid, params[])
  2. {
  3.     if(!strlen(params))
  4.     {
  5.             SendClientMessage(playerid, -1, "/ooc [wiadomość]");
  6.             return 1;
  7.     }
  8.         new Gname[MAX_PLAYER_NAME + 1],
  9.         wiadomosc[144],
  10.         RangaText[24];
  11.  
  12.         GetPlayerName(playerid, Gname, sizeof(Gname));
  13.  
  14.     switch(gGracz[playerid][RangaAdmina])
  15.     {
  16.         case 0: RangaText = "{FFFFFF}Gracz";
  17.             case 1: RangaText = "{00FF00}VIP";
  18.             case 2: RangaText = "{AF3CB7}Moderator";
  19.             case 3: RangaText = "{FF0000}Admin";
  20.             case 4: RangaText = "{B40000}HeadAdmin";
  21.         }
  22.  
  23.         format(wiadomosc, sizeof(wiadomosc), "%s {FFFFFF}[%s{FFFFFF}] ID: {FFFA00}%i{FFFFFF}: %s", Gname, RangaText, playerid, wiadomosc);
  24.     SendClientMessageToAll(-1, wiadomosc);
  25.     return 1;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment