[Ajuda] Ant-quit (/q)
#9

Quote:
Originally Posted by Ever_SH
Посмотреть сообщение
PHP код:
new UltimoDano[MAX_PLAYERS];
public 
OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart)
{
    if(
issuerid != INVALID_PLAYER_ID)
    {
        
UltimoDano[playerid] = gettime();//Pegamos o tempo em que ele tomou ultimo dano
    
}
    return 
1;
}
public 
OnPlayerDisconnect(playerid)
{
    
UltimoDano[playerid] ++10;//Ele pode deslogar 10 seg apos o tomar dano
    
if(UltimoDano[playerid] > gettime()) //Ve se passou 10 segundos
    
{
        
//Deslogou antes de 10 seg
        
return 1;
    }
     return 
1;

Ai й sу punir ele de alguma forma
pawn Код:
UltimoDano[playerid]++10;
Код:
  error 001: expected token: ";", but found "-integer value-"
Reply


Messages In This Thread
Ant-quit (/q) - by fdsda - 11.01.2016, 03:18
Re: Ant-quit (/q) - by GabrielCOP - 11.01.2016, 03:19
Re: Ant-quit (/q) - by fdsda - 11.01.2016, 03:25
Re: Ant-quit (/q) - by n0minal - 11.01.2016, 03:35
Re: Ant-quit (/q) - by DKDarkking - 11.01.2016, 03:56
Re: Ant-quit (/q) - by fdsda - 11.01.2016, 04:18
Re: Ant-quit (/q) - by JPedro - 11.01.2016, 04:28
Re: Ant-quit (/q) - by Ever_SH - 11.01.2016, 11:48
Re: Ant-quit (/q) - by fdsda - 11.01.2016, 15:33
Re: Ant-quit (/q) - by Dayvison_ - 11.01.2016, 15:50

Forum Jump:


Users browsing this thread: 1 Guest(s)