Advertisement
Guest User

basic /me, /do command example for snake

a guest
Oct 23rd, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. COMMAND:me(playerid, params[])
  2. {
  3. new string[128], text[128];
  4. if(sscanf(params, "s[128]", text)) return SendClientMessage(playerid, -1, "USAGE: /me [action]");
  5. else
  6. {
  7. format(string, sizeof(string), "* %s %s", RPName(playerid), text);
  8. SendNearbyMessage(playerid, 30.0, COLOR_PURPLE, string);
  9. }
  10. return 1;
  11. }
  12.  
  13. COMMAND:do(playerid, params[])
  14. {
  15. new string[128], text[128];
  16. if(sscanf(params, "s[128]", text)) return SendClientMessage(playerid, -1, "USAGE: /do [action]");
  17. else
  18. {
  19. format(string, sizeof(string), "* %s (( %s ))", text, RPName(playerid));
  20. SendNearbyMessage(playerid, 30.0, COLOR_PURPLE, string);
  21. }
  22. return 1;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement