Quote:
Originally Posted by [HK]Ryder[AN]
try this
pawn Код:
//=================================DEVEOPING MODE============================================== /* Comment out the lines below if you want normal players to connect Normal players = not admins, not testers, not mods, just normal players xD */ if(PlayerInfo[playerid][pTester] == 0 && PlayerInfo[playerid][pAdmin] < 1){ SCM(playerid, COLOR_LIGHTRED, "Server is in Developing mode, only admins/testers can connect."); SCM(playerid, COLOR_LIGHTRED, "If you wanna become a tester contact the owner via skype:"); SCM(playerid, COLOR_LIGHTRED, "cnk-midle"); Kick(playerid); } else { SCM(playerid, COLOR_LIGHTRED, "You connected because you are a tester, the server is in test mode."); SCM(playerid, COLOR_LIGHTRED, "Players that don't have the tester or admin rank are gonna be kicked."); }
|
Didn't helped at all, the function didn't have any errors. Infact you kinda fucked it up because it would now check for a tester rank and even if the player does have an admin rank it would not let him in the server.
Quote:
Originally Posted by Dwane
Read me!
It's a bug.
When you're kicking a player in OnPlayerConnect, the client autoreconnects for that player. Use a timer instead and kick player from the timer's callback.
|
Yeah thanks, i scripted my timer. Now everything is working fine

I didn't know about the bug..