Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.88 KB | None | 0 0
  1. /*if(strcmp(cmd, "/socio", true) == 0 || strcmp(cmd, "/so", true) == 0)
  2.     {
  3.         if(IsPlayerConnected(playerid))
  4.         {
  5.             GetPlayerName(playerid, sendername, sizeof(sendername));
  6.             new length = strlen(cmdtext);
  7.             while ((idx < length) && (cmdtext[idx] <= ' '))
  8.             {
  9.                 idx++;
  10.             }
  11.             new offset = idx;
  12.             new result[64];
  13.             while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  14.             {
  15.                 result[idx - offset] = cmdtext[idx];
  16.                 idx++;
  17.             }
  18.             result[idx - offset] = EOS;
  19.             if(!strlen(result))
  20.             {
  21.                 MSGPLAYER(playerid, COLOR_GRAD2, "USE: (/so)cio [socio chat]");
  22.                 return 1;
  23.             }
  24.             format(string, sizeof(string), "*%d Socio %s: %s", PlayerInfo[playerid][pSocio], sendername, result);
  25.             if (PlayerInfo[playerid][pSocio] >= 1)
  26.             {
  27.                 SendCMessage(COLOR_YELLOW, string);
  28.             }
  29.             printf("Socio %s: %s", sendername, result);
  30.         }
  31.         return 1;
  32.     }*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement