Advertisement
Guest User

Untitled

a guest
Jul 7th, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. forward AntiCheatMCRP(playerid);
  2. public AntiCheatMCRP(playerid)
  3. {
  4. if(IsPlayerConnected(playerid) && User[playerid][pLogged] == 1)
  5. {
  6. new wepon = GetPlayerWeapon(playerid), weaponname[250],stringsss[250];
  7. if(wepon > 1 && Weapons[playerid][wepon] == false && wepon!=46 && wepon!=0 && AntiCheckWeapon[playerid] == 0)
  8. {
  9. ResetPlayerWeaponsEx(playerid);
  10. SendClientMessage(playerid, COLOR_PICKRED, "Sei stato kickato per aver usato Weapon Spawn Hack.");
  11. SetTimerEx("KickPlayer",500,false,"i",playerid);
  12. GetWeaponName(reason, weaponname, sizeof(weaponname));
  13. format(stringsss,sizeof(stringsss),"Info: %s è stato kickato per aver tentato di spawnare: %s.",GetPlayerNameEx(playerid),weaponname);
  14. {
  15. if(User[playerid][pAdmin] != 0 && AdmDuty[playerid] == 1) SendClientMessage(playerid, -1, stringsss);
  16. }
  17. return 1;
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement