[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 ( playerid, text[] ) {
new string [ 128 ], Nome [ MAX_PLAYER_NAME ] ;
GetPlayerName ( playerid, Nome, MAX_PLAYER_NAME ) ;
if ( PlayerInfo [ playerid ] [ pAdmin ] >= 1 ) {
format ( string, 128, "[ Admin ]: %s ID:%d: %s", Nome, playerid, text ) ;
SendClientMessageToAll ( -1, string ) ;
return 1;
}
else {
format ( string, 128, "%s ID:%d: %s", Nome, playerid, text ) ;
SendClientMessageToAll ( -1, string ) ;
}
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 ( playerid, text[] ) {
new string [ 128 ], Nome [ MAX_PLAYER_NAME ] ;
GetPlayerName ( playerid, Nome, MAX_PLAYER_NAME ) ;
if ( PlayerInfo [ playerid ] [ pAdmin ] >= 1 ) {
format ( string, 128, "[ Admin ]: %s ID:%d: %s", Nome, playerid, text ) ;
SendClientMessageToAll ( -1, string ) ;
return 1;
}
else {
format ( string, 128, "%s ID:%d: %s", Nome, playerid, text ) ;
SendClientMessageToAll ( -1, string ) ;
}
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 ( playerid, text[] ) {
new string [ 128 ], Nome [ MAX_PLAYER_NAME ] ;
GetPlayerName ( playerid, Nome, MAX_PLAYER_NAME ) ;
if (pAdmin[playerid] >= 1 ) {
format ( string, 128, "[ Admin ]: %s ID:%d: %s", Nome, playerid, text ) ;
SendClientMessageToAll ( -1, string ) ;
return 1;
}
else {
format ( string, 128, "%s ID:%d: %s", Nome, playerid, text ) ;
SendClientMessageToAll ( -1, string ) ;
}
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 ( playerid, text[] ) {
new string [ 128 ], Nome [ MAX_PLAYER_NAME ] ;
GetPlayerName ( playerid, Nome, MAX_PLAYER_NAME ) ;
if (pAdmin[playerid] >= 1 ) {
format ( string, 128, "[ Admin ]: %s ID:%d: %s", Nome, playerid, text ) ;
SendClientMessageToAll ( -1, string ) ;
return 1;
}
else {
format ( string, 128, "%s ID:%d: %s", Nome, playerid, text ) ;
SendClientMessageToAll ( -1, string ) ;
}
return 1;
}
Agora sim vai funfar.
|
na hora de compilar deu certo, mas quando digitei no xat, nao apareceu