Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: Sh0cK on April 18, 2010, 05:15:32 PM

Title: GUPS 1.15 - Auto-Kick doesnt work.
Post by: Sh0cK on April 18, 2010, 05:15:32 PM
The title says it all, the message appears, but the player is not kicked.
Title: Re: GUPS 1.15 - Auto-Kick doesnt work.
Post by: Boss on April 18, 2010, 05:20:46 PM
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.