Advertisement
Guest User

Untitled

a guest
Mar 10th, 2015
374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. CMD:text(playerid, params[])
  2. {
  3. if(gPlayerLogged{playerid} == 0)
  4. {
  5. SendClientMessageEx(playerid, COLOR_GREY, "You're not logged in.");
  6. return 1;
  7. }
  8.  
  9. if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: (/text) [Chat]");
  10. new string[128];
  11. format(string, sizeof(string), "(%s) %s", GetPlayerNameEx(playerid), params);
  12. SetPlayerChatBubble(playerid, string, COLOR_WHITE, 60.0, 5000);
  13. format(string, sizeof(string), "(%s) %s", GetPlayerNameEx(playerid), params);
  14. ProxDetector(30.0, playerid, string,COLOR_WHITE,COLOR_WHITE,COLOR_WHITE,COLOR_FADE1,COLOR_FADE2);
  15. if(PlayerInfo[playerid][pBugged] == 1)
  16. {
  17. format(string, sizeof(string), "(bug)|(%s) %s", GetPlayerNameEx(playerid), params);
  18. SendBugMessage(2, COLOR_LIGHTGREEN, string);
  19. }
  20. return 1;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement