Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward AntiCheatMCRP(playerid);
- public AntiCheatMCRP(playerid)
- {
- if(IsPlayerConnected(playerid) && User[playerid][pLogged] == 1)
- {
- new wepon = GetPlayerWeapon(playerid), weaponname[250],stringsss[250];
- if(wepon > 1 && Weapons[playerid][wepon] == false && wepon!=46 && wepon!=0 && AntiCheckWeapon[playerid] == 0)
- {
- ResetPlayerWeaponsEx(playerid);
- SendClientMessage(playerid, COLOR_PICKRED, "Sei stato kickato per aver usato Weapon Spawn Hack.");
- SetTimerEx("KickPlayer",500,false,"i",playerid);
- GetWeaponName(reason, weaponname, sizeof(weaponname));
- format(stringsss,sizeof(stringsss),"Info: %s è stato kickato per aver tentato di spawnare: %s.",GetPlayerNameEx(playerid),weaponname);
- {
- if(User[playerid][pAdmin] != 0 && AdmDuty[playerid] == 1) SendClientMessage(playerid, -1, stringsss);
- }
- return 1;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement