SHARE
TWEET

Untitled

a guest Nov 20th, 2014 564 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <a_samp>
  2. #include <zcmd>
  3. #include <sampac>
  4.  
  5. #define DEBUG 0
  6.  
  7. CMD:acstatus(playerid, params[])
  8. {
  9.         new str[128];
  10.         format(str, sizeof(str), "IsPlayerUsingSampAC: %d", IsPlayerUsingSampAC(playerid));
  11.         SendClientMessage(playerid, -1, str);
  12.  
  13.  
  14.         new hwid[256];
  15.         GetPlayerHardwareID(playerid, hwid, sizeof(hwid));
  16.         format(str, sizeof(str), "HardwareID: %s", hwid);
  17.         SendClientMessage(playerid, -1, str);
  18.  
  19.         format(str, sizeof(str), "GetPlayerCBug: %d, GetPlayerLiteFoot: %d, GetPlayerSwitchReload: %d", GetPlayerCrouchBug(playerid), GetPlayerLiteFoot(playerid), GetPlayerSwitchReload(playerid));
  20.         SendClientMessage(playerid, -1, str);
  21.  
  22.         format(str, sizeof(str), "GetPlayerFPSLimit: %d", GetPlayerFPSLimit(playerid));
  23.         SendClientMessage(playerid, -1, str);
  24.  
  25.         format(str, sizeof(str), "GetPlayerUnlimitedSprint: %d", GetPlayerUnlimitedSprint(playerid));
  26.         SendClientMessage(playerid, -1, str);
  27.  
  28.         return 1;
  29. }
  30.  
  31. CMD:sprint(playerid, params[])
  32. {
  33.         TogglePlayerUnlimitedSprint(playerid, !!strval(params));
  34.  
  35.         new str[128];
  36.         format(str, sizeof(str), "Set unlimited sprint to: %d", !!strval(params));
  37.         SendClientMessage(playerid, -1, str);
  38.  
  39.         return 1;
  40. }
  41.  
  42. CMD:setmyfps(playerid, params[])
  43. {
  44.         SetPlayerFPSLimit(playerid, strval(params));
  45.  
  46.         new str[128];
  47.         format(str, sizeof(str), "Set FPS limit to: %d", strval(params));
  48.         SendClientMessage(playerid, -1, str);
  49.  
  50.         return 1;
  51. }
  52.  
  53. CMD:litefoot(playerid, params[])
  54. {
  55.         TogglePlayerLiteFoot(playerid, !!strval(params));
  56.  
  57.         new str[128];
  58.         format(str, sizeof(str), "Set lite foot to: %d", !!strval(params));
  59.         SendClientMessage(playerid, -1, str);
  60.  
  61.         return 1;
  62. }
  63.  
  64. CMD:cbug(playerid, params[])
  65. {
  66.         SetPlayerCrouchBug(playerid, strval(params));
  67.  
  68.         new str[128];
  69.         format(str, sizeof(str), "Set cbug to: %d", strval(params));
  70.         SendClientMessage(playerid, -1, str);
  71.  
  72.         return 1;
  73. }
  74.  
  75. CMD:switchreload(playerid, params[])
  76. {
  77.         TogglePlayerSwitchReload(playerid, !!strval(params));
  78.  
  79.         new str[128];
  80.         format(str, sizeof(str), "Set switch reload to: %d", !!strval(params));
  81.         SendClientMessage(playerid, -1, str);
  82.  
  83.         return 1;
  84. }
  85.  
  86. CMD:togglebugs(playerid, params[])
  87. {
  88.         TogglePlayerCrouchBug(playerid, !!strval(params));
  89.         TogglePlayerLiteFoot(playerid, !!strval(params));
  90.         TogglePlayerSwitchReload(playerid, !!strval(params));
  91.  
  92.         return 1;
  93. }
  94.  
  95. public OnACOpened(ip[])
  96. {
  97.         printf("PAWN - OnACOpened(%s)", ip);
  98. }
  99.  
  100. public OnACClosed(ip[])
  101. {
  102.         printf("PAWN - OnACClosed(%s)", ip);
  103. }
  104.  
  105. public OnFileExecuted(playerid, module[], md5[])
  106. {
  107.         printf("PAWN - OnFileExecuted(%d, %s, %s", playerid, module, md5);
  108.  
  109.         #if DEBUG == 1
  110.         new str[180];
  111.         format(str, sizeof(str), "OnFileExecuted(%d, %s, %s)", playerid, module, md5);
  112.         SendClientMessage(playerid, -1, str);
  113.         #endif
  114. }
  115.  
  116. public OnMD5Calculated(playerid, address, size, md5[])
  117. {
  118.         printf("PAWN - OnMD5Calculated(%d, %d, %d, %s)", playerid, address, size, md5);
  119.  
  120.         #if DEBUG == 1
  121.         new str[180];
  122.         format(str, sizeof(str), "OnMD5Calculated(%d, 0x%x, %d, %s)", playerid, address, size, md5);
  123.         SendClientMessage(playerid, -1, str);
  124.         #endif
  125. }
  126.  
  127. public OnImgFileModifed(playerid, filename[], md5[])
  128. {
  129.         printf("PAWN - OnImgFileModifed(%d, %s, %s)", playerid, filename, md5);
  130.  
  131.         #if DEBUG == 1
  132.         new str[180];
  133.         format(str, sizeof(str), "OnImgFileModifed(%d, %s, %s)", playerid, filename, md5);
  134.         SendClientMessage(playerid, -1, str);
  135.         #endif
  136. }
  137.  
  138. public OnFileCalculated(playerid, filename[], md5[])
  139. {
  140.         printf("PAWN - OnFileCalculated(%d, %s, %s)", playerid, filename, md5);
  141.  
  142.         #if DEBUG == 1
  143.         new str[180];
  144.         format(str, sizeof(str), "OnFileCalculated(%d, %s, %s)", playerid, filename, md5);
  145.         SendClientMessage(playerid, -1, str);
  146.         #endif
  147. }
  148.  
  149. public OnPlayerPause(playerid, type, bool:pause)
  150. {
  151.         new str[170];
  152.         format(str, sizeof(str), "PAWN - OnPlayerPause(%d, %d, %d)", playerid, type, pause);
  153.         SendClientMessage(playerid, -1, str);
  154. }
  155.  
  156. public OnScreenshotTaken(playerid)
  157. {
  158.         new str[180];
  159.         format(str, sizeof(str), "PAWN - OnScreenShotTaken(%d)", playerid);
  160.         SendClientMessage(playerid, -1, str);
  161. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top