• Welcome to Vice City Multiplayer.
 

GUPS 1.15 - Auto-Kick doesnt work.

Started by Sh0cK, April 18, 2010, 04:15:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Sh0cK

The title says it all, the message appears, but the player is not kicked.

Boss

It is a good tone to paste the problematic code so that anyone who might potentially want to help you doesn't need to look for it himself.


public OnPlayerSpawn(playerid,classid,teamid)
{
format(file, sizeof(file), USERS_FILE, gPlayers[playerid]);
if(dini_Exists(file)) {
if(PlayerInfo[playerid][Logged] != 1) {
new string[256];
format(string,256,"Auto_Kick:[ %s ] Reason:[ Failed to login ]",gPlayers[playerid]);
SendClientMessageToAll(COLOR_GREEN,string);
}
else { // player spawned and logged in so we need to set the money
new cash = dini_Int(file, "Cash");
SetPlayerMoney(playerid,cash);
}
}
else SetPlayerMoney(playerid,0);
return 1;
}


There is no Kick(playerid); here as you can see, so you just have to add it and re-compile. Could've figured yourself.