Advertisement
Guest User

/ame and /amy

a guest
Jun 1st, 2017
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.25 KB | None | 0 0
  1. CMD:ame(playerid, params[])
  2. {
  3.     new string[128];
  4.     if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
  5.     if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, -1, "USAGE: /ame [action]");
  6.     if(AntiAdv(playerid, params)) return 1;
  7.     format(string, sizeof(string), "> %s %s", RPN(playerid), params);
  8.     SendClientMessage(playerid, COLOR_PURPLE, string);
  9.     format(string, sizeof(string), "* %s %s", RPN(playerid), params);
  10.     SetPlayerChatBubble(playerid, string, COLOR_PURPLE, 20.0, 4000);
  11.     return 1;
  12. }
  13.  
  14. CMD:ame(playerid, params[])
  15. {
  16.     new string[128];
  17.     if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
  18.     if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, -1, "USAGE: /amy [action]");
  19.     if(AntiAdv(playerid, params)) return 1; //This is just unique from another server, you can delete it if you want.
  20.     format(string, sizeof(string), "> %s's %s", RPN(playerid), params);
  21.     SendClientMessage(playerid, COLOR_PURPLE, string);
  22.     format(string, sizeof(string), "* %s's %s", RPN(playerid), params);
  23.     SetPlayerChatBubble(playerid, string, COLOR_PURPLE, 20.0, 4000);
  24.     return 1;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement