[Pedido] Armas no corpo
#1

pessoal vir ne um server armas no corpo todo , nгo so nas costas
mais no corpo todo tipo um mod.

e igual aquele sistema de armas nas costa

so que na cintura etc .

quando vocк pegar a tal arma ela sair do seu corpo achei isto muito legal

alguem conhecer um fs assim ?




tipo na imagem a cima so que eu vir ne um server e nгo e mod ok.
Reply
#2

Coloca os objetos espalhados e cria um script para revesar as armas de acordo com a que tiver em mгos..
Para por as armas pode usar a fs attachments ^^
Reply
#3

Quote:
Originally Posted by Input
Посмотреть сообщение
Coloca os objetos espalhados e cria um script para revesar as armas de acordo com a que tiver em mгos..
Para por as armas pode usar a fs attachments ^^
mais man tenho quais certeza que ja tem um fs pronto

com tudo certinho desbugado !

se quizer me ajudar com script
Reply
#4

Quote:
Originally Posted by Dieguinho
Посмотреть сообщение
mais man tenho quais certeza que ja tem um fs pronto

com tudo certinho desbugado !

se quizer me ajudar com script
Ai se jб existe algo pronto, sendo dos outros, vocк nгo irб fazer?
Vai preferir que seu servidor tenha sistemas que existem por ai?

Ai й vocк que sabe..

A Unica resposta que posso dar agora: Use o Search!
Reply
#5

Aqui estб, achei pesquisando.

PHP код:
#include <a_samp>

#define ARMEDBODY_USE_HEAVY_WEAPON            (false)

static
    
armedbody_pTick[MAX_PLAYERS];
public 
OnFilterScriptInit(){
    
printf("=====================================================================");
    
printf("This is a part of a OpenGTA subject, visit opengta.org for more info.");
    
printf("FilterScript Name: Armed body");
    
printf("Description:Attatch weapond to player's body");
    
printf("Author:yezizhu");
    
printf("Special thanks:Double-O-Seven, Brian.");
    
printf("Contact author: imyzz@opengta.org");
    
printf("=====================================================================");
    return 
true;
}
public 
OnFilterScriptExit(){
    return 
true;
}
public 
OnPlayerUpdate(playerid){
    if(
GetTickCount() - armedbody_pTick[playerid] > 113){ //prefix check itter
        
new
            
weaponid[13],weaponammo[13],pArmedWeapon;
        
pArmedWeapon GetPlayerWeapon(playerid);
        
GetPlayerWeaponData(playerid,1,weaponid[1],weaponammo[1]);
        
GetPlayerWeaponData(playerid,2,weaponid[2],weaponammo[2]);
        
GetPlayerWeaponData(playerid,4,weaponid[4],weaponammo[4]);
        
GetPlayerWeaponData(playerid,5,weaponid[5],weaponammo[5]);
        
#if ARMEDBODY_USE_HEAVY_WEAPON
        
GetPlayerWeaponData(playerid,7,weaponid[7],weaponammo[7]);
        
#endif
        
if(weaponid[1] && weaponammo[1] > 0){
            if(
pArmedWeapon != weaponid[1]){
    %!= 
weaponid[1]){
                if(!
IsPlayerAttachedObjectSlotUsed(playerid,0)){
                    
SetPlayerAttachedObject(playerid,0,GetWeaponModel(weaponid[1]),10.199999, -0.1399990.0300000.500007, -115.0000000.0000001.0000001.0000001.000000);
                }
            }
            else {
                if(
IsPlayerAttachedObjectSlotUsed(playerid,0)){
                    
RemovePlayerAttachedObject(playerid,0);
                }
            }
        }
        else if(
IsPlayerAttachedObjectSlotUsed(playerid,0)){
            
RemovePlayerAttachedObject(playerid,0);
        }
        if(
weaponid[2] && weaponammo[2] > 0){
            if(
pArmedWeapon != weaponid[2]){
                if(!
IsPlayerAttachedObjectSlotUsed(playerid,1)){
                    
SetPlayerAttachedObject(playerid,1,GetWeaponModel(weaponid[2]),8, -0.079999, -0.0399990.109999, -90.1000060.0000000.0000001.0000001.0000001.000000);
                }
            }
            else {
                if(
IsPlayerAttachedObjectSlotUsed(playerid,1)){
                    
RemovePlayerAttachedObject(playerid,1);
                }
            }
        }
        else if(
IsPlayerAttachedObjectSlotUsed(playerid,1)){
            
RemovePlayerAttachedObject(playerid,1);
        }
        if(
weaponid[4] && weaponammo[4] > 0){
            if(
pArmedWeapon != weaponid[4]){
                if(!
IsPlayerAttachedObjectSlotUsed(playerid,2)){
                    
SetPlayerAttachedObject(playerid,2,GetWeaponModel(weaponid[4]),70.000000, -0.100000, -0.080000, -95.000000, -10.0000000.0000001.0000001.0000001.000000);
                }
            }
            else {
                if(
IsPlayerAttachedObjectSlotUsed(playerid,2)){
                    
RemovePlayerAttachedObject(playerid,2);
                }
            }
        }
        else if(
IsPlayerAttachedObjectSlotUsed(playerid,2)){
            
RemovePlayerAttachedObject(playerid,2);
        }
        if(
weaponid[5] && weaponammo[5] > 0){
            if(
pArmedWeapon != weaponid[5]){
                if(!
IsPlayerAttachedObjectSlotUsed(playerid,3)){
                    
SetPlayerAttachedObject(playerid,3,GetWeaponModel(weaponid[5]),10.200000, -0.119999, -0.0599990.000000206.0000000.0000001.0000001.0000001.000000);
                }
            }
            else {
                if(
IsPlayerAttachedObjectSlotUsed(playerid,3)){
                    
RemovePlayerAttachedObject(playerid,3);
                }
            }
        }
        else if(
IsPlayerAttachedObjectSlotUsed(playerid,3)){
            
RemovePlayerAttachedObject(playerid,3);
        }
        
#if ARMEDBODY_USE_HEAVY_WEAPON
        
if(weaponid[7] && weaponammo[7] > 0){
            if(
pArmedWeapon != weaponid[7]){
                if(!
IsPlayerAttachedObjectSlotUsed(playerid,4)){
                    
SetPlayerAttachedObject(playerid,4,GetWeaponModel(weaponid[7]),1,-0.1000000.000000, -0.10000084.399932112.00000010.0000001.0999991.0000001.000000);
                }
            }
            else {
                if(
IsPlayerAttachedObjectSlotUsed(playerid,4)){
                    
RemovePlayerAttachedObject(playerid,4);
                }
            }
        }
        else if(
IsPlayerAttachedObjectSlotUsed(playerid,4)){
            
RemovePlayerAttachedObject(playerid,4);
        }
        
#endif
        
armedbody_pTick[playerid] = GetTickCount();
    }
    return 
true;
}

    
    
//by Double-O-Seven
stock GetWeaponModel(weaponid)
{
    switch(
weaponid)
    {
        case 
1:
            return 
331;

        case 
2..8:
            return 
weaponid+331;

        case 
9:
            return 
341;

        case 
10..15:
            return 
weaponid+311;

        case 
16..18:
            return 
weaponid+326;

        case 
22..29:
            return 
weaponid+324;

        case 
30,31:
            return 
weaponid+325;

        case 
32:
            return 
372;

        case 
33..45:
            return 
weaponid+324;

        case 
46:
            return 
371;
    }
    return 
0;

Reply
#6

Quote:
Originally Posted by ZaturN
Посмотреть сообщение
Aqui estб, achei pesquisando.

PHP код:
#include <a_samp>
#define ARMEDBODY_USE_HEAVY_WEAPON            (false)
static
    
armedbody_pTick[MAX_PLAYERS];
public 
OnFilterScriptInit(){
    
printf("=====================================================================");
    
printf("This is a part of a OpenGTA subject, visit opengta.org for more info.");
    
printf("FilterScript Name: Armed body");
    
printf("Description:Attatch weapond to player's body");
    
printf("Author:yezizhu");
    
printf("Special thanks:Double-O-Seven, Brian.");
    
printf("Contact author: imyzz@opengta.org");
    
printf("=====================================================================");
    return 
true;
}
public 
OnFilterScriptExit(){
    return 
true;
}
public 
OnPlayerUpdate(playerid){
    if(
GetTickCount() - armedbody_pTick[playerid] > 113){ //prefix check itter
        
new
            
weaponid[13],weaponammo[13],pArmedWeapon;
        
pArmedWeapon GetPlayerWeapon(playerid);
        
GetPlayerWeaponData(playerid,1,weaponid[1],weaponammo[1]);
        
GetPlayerWeaponData(playerid,2,weaponid[2],weaponammo[2]);
        
GetPlayerWeaponData(playerid,4,weaponid[4],weaponammo[4]);
        
GetPlayerWeaponData(playerid,5,weaponid[5],weaponammo[5]);
        
#if ARMEDBODY_USE_HEAVY_WEAPON
        
GetPlayerWeaponData(playerid,7,weaponid[7],weaponammo[7]);
        
#endif
        
if(weaponid[1] && weaponammo[1] > 0){
            if(
pArmedWeapon != weaponid[1]){
    %!= 
weaponid[1]){
                if(!
IsPlayerAttachedObjectSlotUsed(playerid,0)){
                    
SetPlayerAttachedObject(playerid,0,GetWeaponModel(weaponid[1]),10.199999, -0.1399990.0300000.500007, -115.0000000.0000001.0000001.0000001.000000);
                }
            }
            else {
                if(
IsPlayerAttachedObjectSlotUsed(playerid,0)){
                    
RemovePlayerAttachedObject(playerid,0);
                }
            }
        }
        else if(
IsPlayerAttachedObjectSlotUsed(playerid,0)){
            
RemovePlayerAttachedObject(playerid,0);
        }
        if(
weaponid[2] && weaponammo[2] > 0){
            if(
pArmedWeapon != weaponid[2]){
                if(!
IsPlayerAttachedObjectSlotUsed(playerid,1)){
                    
SetPlayerAttachedObject(playerid,1,GetWeaponModel(weaponid[2]),8, -0.079999, -0.0399990.109999, -90.1000060.0000000.0000001.0000001.0000001.000000);
                }
            }
            else {
                if(
IsPlayerAttachedObjectSlotUsed(playerid,1)){
                    
RemovePlayerAttachedObject(playerid,1);
                }
            }
        }
        else if(
IsPlayerAttachedObjectSlotUsed(playerid,1)){
            
RemovePlayerAttachedObject(playerid,1);
        }
        if(
weaponid[4] && weaponammo[4] > 0){
            if(
pArmedWeapon != weaponid[4]){
                if(!
IsPlayerAttachedObjectSlotUsed(playerid,2)){
                    
SetPlayerAttachedObject(playerid,2,GetWeaponModel(weaponid[4]),70.000000, -0.100000, -0.080000, -95.000000, -10.0000000.0000001.0000001.0000001.000000);
                }
            }
            else {
                if(
IsPlayerAttachedObjectSlotUsed(playerid,2)){
                    
RemovePlayerAttachedObject(playerid,2);
                }
            }
        }
        else if(
IsPlayerAttachedObjectSlotUsed(playerid,2)){
            
RemovePlayerAttachedObject(playerid,2);
        }
        if(
weaponid[5] && weaponammo[5] > 0){
            if(
pArmedWeapon != weaponid[5]){
                if(!
IsPlayerAttachedObjectSlotUsed(playerid,3)){
                    
SetPlayerAttachedObject(playerid,3,GetWeaponModel(weaponid[5]),10.200000, -0.119999, -0.0599990.000000206.0000000.0000001.0000001.0000001.000000);
                }
            }
            else {
                if(
IsPlayerAttachedObjectSlotUsed(playerid,3)){
                    
RemovePlayerAttachedObject(playerid,3);
                }
            }
        }
        else if(
IsPlayerAttachedObjectSlotUsed(playerid,3)){
            
RemovePlayerAttachedObject(playerid,3);
        }
        
#if ARMEDBODY_USE_HEAVY_WEAPON
        
if(weaponid[7] && weaponammo[7] > 0){
            if(
pArmedWeapon != weaponid[7]){
                if(!
IsPlayerAttachedObjectSlotUsed(playerid,4)){
                    
SetPlayerAttachedObject(playerid,4,GetWeaponModel(weaponid[7]),1,-0.1000000.000000, -0.10000084.399932112.00000010.0000001.0999991.0000001.000000);
                }
            }
            else {
                if(
IsPlayerAttachedObjectSlotUsed(playerid,4)){
                    
RemovePlayerAttachedObject(playerid,4);
                }
            }
        }
        else if(
IsPlayerAttachedObjectSlotUsed(playerid,4)){
            
RemovePlayerAttachedObject(playerid,4);
        }
        
#endif
        
armedbody_pTick[playerid] = GetTickCount();
    }
    return 
true;
}
    
    
//by Double-O-Seven
stock GetWeaponModel(weaponid)
{
    switch(
weaponid)
    {
        case 
1:
            return 
331;
        case 
2..8:
            return 
weaponid+331;
        case 
9:
            return 
341;
        case 
10..15:
            return 
weaponid+311;
        case 
16..18:
            return 
weaponid+326;
        case 
22..29:
            return 
weaponid+324;
        case 
30,31:
            return 
weaponid+325;
        case 
32:
            return 
372;
        case 
33..45:
            return 
weaponid+324;
        case 
46:
            return 
371;
    }
    return 
0;

O filterscript nгo ta copilando alguem me ajudar com ele ?
Reply
#7

No meu compilou certinho.


Quando vocк vai compilar, aparece o que ?



@EDIT Achei o site onde baixei, vou lhe mandar por PM.
Reply
#8

PHP код:
F:\Brasil Epic Games\filterscripts\armas no corpo.pwn(34) : error 029invalid expressionassumed zero
F
:\Brasil Epic Games\filterscripts\armas no corpo.pwn(34) : error 029invalid expressionassumed zero
F
:\Brasil Epic Games\filterscripts\armas no corpo.pwn(36) : error 017undefined symbol "GetWeaponModel"
F:\Brasil Epic Games\filterscripts\armas no corpo.pwn(39) : warning 217loose indentation
F
:\Brasil Epic Games\filterscripts\armas no corpo.pwn(39) : error 029invalid expressionassumed zero
F
:\Brasil Epic Games\filterscripts\armas no corpo.pwn(45) : warning 217loose indentation
F
:\Brasil Epic Games\filterscripts\armas no corpo.pwn(48) : warning 217loose indentation
F
:\Brasil Epic Games\filterscripts\armas no corpo.pwn(51) : error 017undefined symbol "GetWeaponModel"
F:\Brasil Epic Games\filterscripts\armas no corpo.pwn(66) : error 017undefined symbol "GetWeaponModel"
F:\Brasil Epic Games\filterscripts\armas no corpo.pwn(81) : error 017undefined symbol "GetWeaponModel"
F:\Brasil Epic Games\filterscripts\armas no corpo.pwn(112) : warning 217loose indentation
F
:\Brasil Epic Games\filterscripts\armas no corpo.pwn(118) : warning 217loose indentation
F
:\Brasil Epic Games\filterscripts\armas no corpo.pwn(118) : error 029invalid expressionassumed zero
F
:\Brasil Epic Games\filterscripts\armas no corpo.pwn(118) : error 017undefined symbol "GetWeaponModel"
F:\Brasil Epic Games\filterscripts\armas no corpo.pwn(120) : error 017undefined symbol "weaponid"
F:\Brasil Epic Games\filterscripts\armas no corpo.pwn(126) : error 017undefined symbol "weaponid"
F:\Brasil Epic Games\filterscripts\armas no corpo.pwn(132) : error 017undefined symbol "weaponid"
F:\Brasil Epic Games\filterscripts\armas no corpo.pwn(135) : error 017undefined symbol "weaponid"
F:\Brasil Epic Games\filterscripts\armas no corpo.pwn(138) : error 017undefined symbol "weaponid"
F:\Brasil Epic Games\filterscripts\armas no corpo.pwn(141) : error 017undefined symbol "weaponid"
F:\Brasil Epic Games\filterscripts\armas no corpo.pwn(147) : error 017undefined symbol "weaponid"
F:\Brasil Epic Games\filterscripts\armas no corpo.pwn(154) : error 030compound statement not closed at the end of file (started at line 22)
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase


17 Errors

Reply
#9

Olha o PM.

Seu server й 0.3x? Se nгo for, mude.

Porque com o 0.3x irб atualizar as includes, ai tente compilar novamente!
Reply
#10

Quote:
Originally Posted by ZaturN
Посмотреть сообщение
Olha o PM.

Seu server й 0.3x? Se nгo for, mude.

Porque com o 0.3x irб atualizar as includes, ai tente compilar novamente!
agr copilou merecer um + rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)