[Off] Sugestхes de FilterScripts, Mapas e Tutoriais
#4

Tipo: FilterScript
Nome: Sistema de Equipamentos (0.3z)
Descriзгo: Ao botar /colete, /capacete ou /escudo, quando um PLAYER levar um tiro nesses equipamentos, nгo tirar sangue do PLAYER. Aн, aprimore do jeito que quiser.
Base Simples:

pawn Code:
public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ )
{
    if(hittype == BULLET_HIT_TYPE_OBJECT) // Detecta tiro ao objeto
    {
        if( IsValidObject( hitid ) ) // Ver se o objeto й vбlido.
        {
            SendClientMessage( playerid, -1, "Vocк acertou o objeto e ele vazou!" );
            DestroyObject( hitid ); // Destrou o Objeto acertado.
        }
    }
    return 1;
}
pawn Code:
// Escudo
SetPlayerAttachedObject(playerid, 0,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
SetPlayerAttachedObject(playerid, 1,18642,7,0.1,0.0,-0.11,0.0,-90.0,90.0);
// Colete
SetPlayerAttachedObject(playerid, 2,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);
// Capacete
SetPlayerAttachedObject(playerid, 3,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)