SA-MP Forums Archive
[Ajuda] [AJUDA] alguns filterscripts? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] [AJUDA] alguns filterscripts? (/showthread.php?tid=601242)



[AJUDA] alguns filterscripts? - iName - 18.02.2016

olá galera, eu queria saber se existe algum filterscript que tenha um comando com carros personalizados (com objetos)?

e preciso de mais umas coisas: queria add a tag [VIP] [ADMIN] e [JOGADOR] no chat do meu server, alguem poderia me ensinar como? (o sistema que eu uso é ladmin)


Re: [AJUDA] alguns filterscripts? - LockedLucas - 18.02.2016

O bagulho da tag...

PHP код:
public OnPlayerText playeridtext[] ) {
    new 
string 128 ], Nome MAX_PLAYER_NAME ] ;
    
GetPlayerName playeridNomeMAX_PLAYER_NAME ) ;
    
    if ( 
PlayerInfo playerid ] [ pAdmin ] >= ) {
        
        
format string128"[ Admin ]: %s ID:%d: %s"Nomeplayeridtext   ) ;
        
SendClientMessageToAll ( -1string ) ;
        return 
1;
    } 
    else {
    
        
format string128"%s ID:%d: %s"Nomeplayeridtext   ) ;
        
SendClientMessageToAll ( -1string ) ;
    }
    return 
1;

Obs: isso ai й uma base, se vire pra fazer o resto.


Re: [AJUDA] alguns filterscripts? - iName - 18.02.2016

Quote:
Originally Posted by LockedLucas
Посмотреть сообщение
O bagulho da tag...

PHP код:
public OnPlayerText playeridtext[] ) {
    new 
string 128 ], Nome MAX_PLAYER_NAME ] ;
    
GetPlayerName playeridNomeMAX_PLAYER_NAME ) ;
    
    if ( 
PlayerInfo playerid ] [ pAdmin ] >= ) {
        
        
format string128"[ Admin ]: %s ID:%d: %s"Nomeplayeridtext   ) ;
        
SendClientMessageToAll ( -1string ) ;
        return 
1;
    } 
    else {
    
        
format string128"%s ID:%d: %s"Nomeplayeridtext   ) ;
        
SendClientMessageToAll ( -1string ) ;
    }
    return 
1;

Obs: isso ai й uma base, se vire pra fazer o resto.
eu coloquei, mas estб dando este error:

C:\Users\Guilherme\Desktop\server\filterscripts\ad min.pwn(1676) : error 017: undefined symbol "pAdmin"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


Re: [AJUDA] alguns filterscripts? - LiiPe - 18.02.2016

https://sampforum.blast.hk/showthread.php?tid=215963

da pra criar do jeito que quer


@edit


vai dar erro sim pq vc nao tem a variavel pAdmin definida e nao и a sua variavel de admin !ele lhe passo uma base de como fazer !


Re: [AJUDA] alguns filterscripts? - iName - 18.02.2016

Quote:
Originally Posted by LiiPe
Посмотреть сообщение
mas esse dai, dps que cria, tem cmd?


nao manjo muito bem em essas coisas


Re: [AJUDA] alguns filterscripts? - LiiPe - 18.02.2016

Quote:
Originally Posted by iName
Посмотреть сообщение
eu coloquei, mas estб dando este error:

C:\Users\Guilherme\Desktop\server\filterscripts\ad min.pwn(1676) : error 017: undefined symbol "pAdmin"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Quote:
Originally Posted by iName
Посмотреть сообщение
mas esse dai, dps que cria, tem cmd?


nao manjo muito bem em essas coisas
nao esse fs и apenas para voce Attachar criar o objeto no veiculo..a funзao и voce quem cria '-'


Re: [AJUDA] alguns filterscripts? - iName - 18.02.2016

Quote:
Originally Posted by LiiPe
Посмотреть сообщение
nao esse fs и apenas para voce Attachar criar o objeto no veiculo..a funзao и voce quem cria '-'
mas nao teria um mais facil? kk ja com os objetos e com comando tipo /tcar


Re: [AJUDA] alguns filterscripts? - LiiPe - 18.02.2016

haha espertinho nada vem do alem tudo tem que ser criado
@edit
https://sampwiki.blast.hk/wiki/AttachObjectToVehicle

https://sampwiki.blast.hk/wiki/DestroyObject

e com mais o fs vc ja consegue criar !


Re: [AJUDA] alguns filterscripts? - LockedLucas - 18.02.2016

Quote:
Originally Posted by iName
Посмотреть сообщение
eu coloquei, mas estб dando este error:

C:\Users\Guilherme\Desktop\server\filterscripts\ad min.pwn(1676) : error 017: undefined symbol "pAdmin"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
error 017: undefined symbol "pAdmin" = Sнmbolo nгo definido.


Coloque assim:

PHP код:
// Lб em cima no FS
new pAdmin[MAX_PLAYERS]; 
PHP код:
public OnPlayerText playeridtext[] ) { 
    new 
string 128 ], Nome MAX_PLAYER_NAME ] ; 
    
GetPlayerName playeridNomeMAX_PLAYER_NAME ) ; 
     
    if (
pAdmin[playerid] >= ) { 
         
        
format string128"[ Admin ]: %s ID:%d: %s"Nomeplayeridtext   ) ; 
        
SendClientMessageToAll ( -1string ) ; 
        return 
1
    }  
    else { 
     
        
format string128"%s ID:%d: %s"Nomeplayeridtext   ) ; 
        
SendClientMessageToAll ( -1string ) ; 
    } 
    return 
1

Agora sim vai funfar.


Re: [AJUDA] alguns filterscripts? - iName - 18.02.2016

Quote:
Originally Posted by LockedLucas
Посмотреть сообщение
error 017: undefined symbol "pAdmin" = Sнmbolo nгo definido.


Coloque assim:

PHP код:
// Lб em cima no FS
new pAdmin[MAX_PLAYERS]; 
PHP код:
public OnPlayerText playeridtext[] ) { 
    new 
string 128 ], Nome MAX_PLAYER_NAME ] ; 
    
GetPlayerName playeridNomeMAX_PLAYER_NAME ) ; 
     
    if (
pAdmin[playerid] >= ) { 
         
        
format string128"[ Admin ]: %s ID:%d: %s"Nomeplayeridtext   ) ; 
        
SendClientMessageToAll ( -1string ) ; 
        return 
1
    }  
    else { 
     
        
format string128"%s ID:%d: %s"Nomeplayeridtext   ) ; 
        
SendClientMessageToAll ( -1string ) ; 
    } 
    return 
1

Agora sim vai funfar.
na hora de compilar deu certo, mas quando digitei no xat, nao apareceu