Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.68 KB | None | 0 0
  1. PLUGIN_EXPORT bool PLUGIN_CALL
  2.     Load(void ** ppData)
  3. {
  4.     pAMXFunctions = ppData[PLUGIN_DATA_AMX_EXPORTS];
  5.     logprintf = (logprintf_t)ppData[PLUGIN_DATA_LOGPRINTF];
  6.     GetServer = (GetServer_t)ppData[0xE1];
  7.     return true;
  8. }
  9.  
  10. PLUGIN_EXPORT int PLUGIN_CALL
  11.     AmxLoad(AMX * amx)
  12. {
  13.     g_pServer = (char **)(GetServer() + 4);
  14.     return amx_Register(amx, sscanfNatives, -1);
  15. }
  16.  
  17. //g_iTrueMax = 500;
  18.  
  19. char *
  20.     GetNames()
  21. {
  22.     return *g_pServer + g_iTrueMax * 8;
  23. }
  24.  
  25. char *
  26.     GetPlayerName(int playerid)
  27. {
  28.     // Get the player name pointer from memory.
  29.     return GetNames() + (playerid * (MAX_PLAYER_NAME + 1));
  30. }
  31.  
  32. int *
  33.     GetConnected()
  34. {
  35.     return (int *)(*g_pServer + g_iTrueMax * 0);
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement