itsDevi

/me limitless ser

Aug 4th, 2021
805
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CMD:me(playerid, params[])
  2. {
  3.     if(isnull(params))
  4.     {
  5.         return SCM(playerid, COLOR_SYNTAX, "Usage: /me [action]");
  6.     }
  7.  
  8.     if(Maskara[playerid] == 1) {
  9.         if(strlen(params) > MAX_SPLIT_LENGTH)
  10.         {
  11.             SendProximityMessage(playerid, 20.0, SERVER_COLOR, "{C2A2DA} Stranger(B%d) %.*s...", MaskaraID[playerid], MAX_SPLIT_LENGTH, params);
  12.             SendProximityMessage(playerid, 20.0, SERVER_COLOR, "{C2A2DA} ...%s", params[MAX_SPLIT_LENGTH]);
  13.         }
  14.         else
  15.         {
  16.             SendProximityMessage(playerid, 20.0, SERVER_COLOR, "{C2A2DA} Stranger(B%d) %s", MaskaraID[playerid], params);
  17.         }
  18.     }
  19.     else
  20.     {
  21.         if(strlen(params) > MAX_SPLIT_LENGTH)
  22.         {
  23.             SendProximityMessage(playerid, 20.0, SERVER_COLOR, "{C2A2DA} %s %.*s...", GetRPName(playerid), MAX_SPLIT_LENGTH, params);
  24.             SendProximityMessage(playerid, 20.0, SERVER_COLOR, "{C2A2DA} ...%s", params[MAX_SPLIT_LENGTH]);
  25.         }
  26.         else
  27.         {
  28.             SendProximityMessage(playerid, 20.0, SERVER_COLOR, "{C2A2DA} %s %s", GetRPName(playerid), params);
  29.         }
  30.     }
  31.     return 1;
  32. }
RAW Paste Data