[Tutorial] [Tutorial] No Permitir Armas En Interiores e Vehiculos.
#5

Quote:
Originally Posted by Shiny_David
Посмотреть сообщение
Esto te dara un terrible lag... Por que no usar OnPlayerInteriorChange con algunas variables y OnPlayerStateChange? Creo que seria mejor y menos lag saludos
Lagg por quй? Es una simple condiciуn, si se cumple se ejecuta rбpidamente. No escribe ni lee nada de ningъn sitio como para producir ralentizaciones.
_____________
Aunque encontrй un fallo en algo:
pawn Код:
public OnPlayerUpdate(playerid)
{
    if(IsPlayerInAnyVehicle(playerid) && GetPlayerWeapon(playerid) != 0)
    {
        SetPlayerArmedWeapon(playerid,0);
        return 0; //Esto.
    }
    return 1;
}
El return 0; no envнa la actualizaciуn, serнa como un tipo de desincronizaciуn. Lo borran, y arreglado.

Por cierto, bytytus, no deberнas poner tan grande el texto. Parece todo desestructurado.

Saludos!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)