Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnRconLoginAttempt(ip[], password[], success)
- {
- new strport[150];
- new plip[MAX_PLAYER_IP], playerid;
- foreach(Player, i)
- {
- GetPlayerIp(i, plip, sizeof(plip));
- if(strcmp(plip, ip) == 0)
- {
- playerid = i;
- }
- }
- if(success) //////// Rcon zastita
- {
- new connectIme[MAX_PLAYER_NAME];
- ImeIgraca(playerid, connectIme);
- if(!strcmp(connectIme, "Nick koji ima dozvolu", true))
- {
- }
- else if(!strcmp(connectIme, "Nick koji ima dozvolu", true))
- {
- }
- else if(!strcmp(connectIme, "Nick koji ima dozvolu", true))
- {
- }
- else
- {
- SCM(playerid, CRVENA,"* Vase ime nema dozvolu za rcon logovanje, dobili ste kick sa servera.");
- Kick(playerid);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment