19.10.2013, 14:45
pawn Код:
forward LoginKick(playerid);
public LoginKick(playerid)
{
KillTimer( loginkickTimer[playerid] );
if( !IsPlayerConnected(playerid) ) return 0;
if(!IsLoggedIn(playerid))
{
new str[100];
if(loginTime[playerid] > 0)
{
// Count down code here
format( str, sizeof(str), "You have 10 seconds to login!");
GameTextForPlayer( playerid, str, 5000, 5 );
loginkickTimer[playerid] = SetTimerEx( "LoginKick", 10000, false, "i", playerid );
print("test1");
}
else
{
format( str, sizeof(str), "You have 10 seconds adwwadawdawdwto login!");
GameTextForPlayer( playerid, str, 5000, 5 );
print("test2");
}
}
return 1;
}
I want that if the player doesnt login in 10 seconds he's kicked, plaese help :C
+REP for help.