[Ajuda] Kickar apуs 15 minutos.
#6

Quote:
Originally Posted by BreakDriFT
Посмотреть сообщение
pawn Код:
forward KickAfk(playerid)
new bool:afk[MAX_PLAYERS];

public OnPlayerCommandText(playerid, cmdtext[])
{
   if(strcmp("/afk", cmdtext, true) == 0)
   {
   if(IsPlayerInAnyVehicle(playerid)) RemovePlayerFromVehicle(playerid);
   else SendClientMessage(playerid, COR_AZUL, "Vocк estб AFK, digite /sairafk quando voltar!");
   TogglePlayerControllable(playerid,0);
   label[playerid] = Create3DTextLabel("Player AFK!",COR_VERMELHO2,30.0,40.0,50.0,40.0,0);
   Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
   ApplyAnimation(playerid,"BEACH","ParkSit_M_loop",2.0, 1, 0, 0, 0, 0);
   afk[playerid] = true;
   new string3[70];
   new name[MAX_PLAYER_NAME];
   GetPlayerName(playerid, name, sizeof(name));

   format(string3, sizeof(string3), "%s(%d) ficou AFK!", name, playerid);
   SendClientMessageToAll(COR_AZUL, string3);
   }

public KickAfk(playerid)
{
    if(afk[playerid] == true)
    {
    Kick(playerid);
    }
    return 1;
}
Agora faзa o Timer
Vlw cara. Fiz o timer aqui funcionou certinho. Dъvida resolvida. =]
Reply


Messages In This Thread
[Resolvido] Kickar apуs 15 minutos. - by Ed_Agr - 02.08.2012, 20:38
Re: Kickar apуs 15 minutos. - by BreakDriFT - 02.08.2012, 20:39
Re: Kickar apуs 15 minutos. - by Ed_Agr - 02.08.2012, 20:41
Re: Kickar apуs 15 minutos. - by BreakDriFT - 02.08.2012, 20:52
Re: Kickar apуs 15 minutos. - by next-studio|TheKiller - 02.08.2012, 20:54
Re: Kickar apуs 15 minutos. - by Ed_Agr - 08.08.2012, 16:36

Forum Jump:


Users browsing this thread: 1 Guest(s)