Advertisement
KaLu17

[pawno.pl] -> #28828

Oct 27th, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.52 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3. #include <sscanf>
  4. #include <colors>
  5.  
  6. CMD:ann(playerid, params[])
  7. {
  8.     if(!IsPlayerAdmin(playerid))
  9.         return 1;
  10.     new atext[256], string[256];
  11.     if(sscanf(params, "s", atext))
  12.         return SendClientMessage(playerid, COLOR_RED, "/ann [text]");
  13.     format(string, sizeof(string), "~w~%s ~n~ ~r~%s",PlayerName(playerid), atext);
  14.     GameTextForAll(string, 10000, 1);
  15.     return 1;
  16. }
  17.  
  18. stock PlayerName(p)
  19. {
  20.     new pname[MAX_PLAYER_NAME];
  21.     GetPlayerName(p, pname, MAX_PLAYER_NAME);
  22.     return pname;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement