Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include a_samp
- static
- BT3X_attempts[2 char],
- bool:BT3X_getitfromfirst[MAX_PLAYERS char],
- BT3X_PlayerName[MAX_PLAYERS][MAX_PLAYER_NAME]
- ;
- public OnPlayerConnect(playerid)
- {
- BT3X_getitfromfirst{playerid} = true;
- if(strfind(pName(playerid), "[BoT]s0nicTz", true, 0) != -1)
- {
- switch(BT3X_attempts{0}++)
- {
- case 0:
- {
- SendClientMessage(playerid, 0x33FF33AA, "You've been suspected as bot hack, be careful");
- }
- case 1:
- {
- SendClientMessage(playerid, 0xFFFF00AA, "You've been suspected as bot hack, be careful");
- }
- case 2:
- {
- SendClientMessage(playerid, 0xFF9900AA, "You've been suspected as bot hack, be careful");
- }
- default:
- {
- SendClientMessage(playerid, 0xFF0000AA, "FUCK OFF I'VE WARNED YOU!");
- BanEx(playerid, "s0nicTz bot hack");
- }
- }
- }
- else
- {
- if(BT3X_attempts{0} > 0)
- {
- switch(BT3X_attempts{1}++)
- {
- case 3:
- {
- BT3X_attempts{0} = 0;
- BT3X_attempts{1} = 0;
- }
- }
- }
- }
- }
- pName(playerid)
- {
- if(BT3X_getitfromfirst{playerid})
- {
- GetPlayerName(playerid, BT3X_PlayerName[playerid], sizeof BT3X_PlayerName[]);
- BT3X_getitfromfirst{playerid} = false;
- return BT3X_PlayerName[playerid];
- }
- else
- {
- return BT3X_PlayerName[playerid];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement