[FilterScript] Criador de portгo InGame
#21

HeHe, fico legal
9/10
Reply
#22

Ideia й Muito boa, irei testar e ver a funcionalidade..

@Edit
Muito bom, tetado e aprovado!

Fica dica para as Prуximas versхes.

Faзa com que o Player possa escolher onde comeзa e termina o Movimento, seria bem melhor, Ficaria legal tambйm pegar o Angulo do Player para fazer o calculo das direзхes onde se deve mover o Portгo, se vocк fazer essas mudanзas ganharб meu REP..
Reply
#23

Gostei muito

@edit +rep nгo dconsegui quando der eu mando
Reply
#24

Quote:
Originally Posted by Jeniffer
View Post
Gostei muito

@edit +rep
REP de quem tem 1 post owna kkk'

Ficou maneiro
Reply
#25

Gostei, bom trabalho .
Reply
#26

E se eu quiser meter o portгo da esquerda pra direita ou direita pra esquerda?
Reply
#27

Olha sу o erro que da na hora de compilar:

error 017: undefined symbol "KEY_YES"
error 017: undefined symbol "KEY_NO"
Reply
#28

error 017: undefined symbol "cmdtext"
error 017: undefined symbol "playerid"

tp?
Reply
#29

ai galera eu queria coloca 1 comado pra abrir 4 poroes como eu fasso e eles fachar altomaticamente juntos

"Abrir" juntos e "fechar" juntos!
Reply
#30

Show .
Nice
+1 Reputation
Reply
#31

C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(4 : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(49) : warning 217: loose indentation
C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(54) : error 001: expected token: ",", but found ";"
C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(62) : warning 217: loose indentation
C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(74) : error 028: invalid subscript (not an array or too many subscripts): "Editando"
C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(74) : warning 215: expression has no effect
C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(74) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(74) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(74) : fatal error 107: too many error messages on one line
Reply
#32

Quote:
Originally Posted by r1card0
View Post
C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(4 : warning 202: number of arguments does not match definition
C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(49) : warning 217: loose indentation
C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(54) : error 001: expected token: ",", but found ";"
C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(62) : warning 217: loose indentation
C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(74) : error 028: invalid subscript (not an array or too many subscripts): "Editando"
C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(74) : warning 215: expression has no effect
C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(74) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(74) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Eu\Desktop\Servidor\jfs iniciante e intermediario cap2 i\JFS Iniciante e Intermediario Cap2 I\filterscripts\cria_portao.pwn(74) : fatal error 107: too many error messages on one line
vc mexeu em algo?

mostras a linhas em que acontece isso.
Reply
#33

Olб sou novato, e ainda to aprendendo a mecher com GM, coloquei a FS aqui mais sempre que eu dou o comando /criarportao, e seleciono o ID, apareзe "Ninguйm estб fazendo um portгo!" Quem poder ajudar desde entгo agradeзo!!!
Reply
#34

queria criar um portao em dialog com o comando de abrir e fechar
#include <a_samp>
#if defined FILTERSCRIPT
#else
#endif

new SNN;

forward abrir();

forward fechar();

public OnFilterScriptInit()
{
SNN = CreateObject(980, 390.7108, 2498.2642, 18.1633, 0, 0, 5.0);
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/1383", true) == 0)
{
ShowPlayerDialog(playerid,1697,DIALOG_STYLE_LIST," PORTAO BASE","{00FF00}ABRIR\n{FF0000}FECHAR","Selecionar" ,"Cancelar");
return 1;
}
return 0;
}
public fechar()
{
MoveObject(SNN, 390.7108, 2498.2642, 18.1633, 5.0);

return 1;
}

public abrir()
{
MoveObject(SNN, 390.7108, 2498.2642, 12.3209, 5.0);

return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[ ])
{
if(dialogid == 1697) //Menu entrada 994
{
if(!response) return(playerid);

if(listitem == 0)
{
SetTimer ( "abrir" , 10000 , false ) ;
return 1;
}
if(listitem == 1)
{
SetTimer ( "fechar" , 10000 , false ) ;
return 1;
}

return 0;
}
return 0;
}
eu tenho esse mais quando cloco em abrou ou fechar nao acontece nada nem abre e nem fecha me ajuda
Reply
#35

Quote:
Originally Posted by leandr58
View Post
queria criar um portao em dialog com o comando de abrir e fechar
#include <a_samp>
#if defined FILTERSCRIPT
#else
#endif

new SNN;

forward abrir();

forward fechar();

public OnFilterScriptInit()
{
SNN = CreateObject(980, 390.7108, 2498.2642, 18.1633, 0, 0, 5.0);
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/1383", true) == 0)
{
ShowPlayerDialog(playerid,1697,DIALOG_STYLE_LIST," PORTAO BASE","{00FF00}ABRIR\n{FF0000}FECHAR","Selecionar" ,"Cancelar");
return 1;
}
return 0;
}
public fechar()
{
MoveObject(SNN, 390.7108, 2498.2642, 18.1633, 5.0);

return 1;
}

public abrir()
{
MoveObject(SNN, 390.7108, 2498.2642, 12.3209, 5.0);

return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[ ])
{
if(dialogid == 1697) //Menu entrada 994
{
if(!response) return(playerid);

if(listitem == 0)
{
SetTimer ( "abrir" , 10000 , false ) ;
return 1;
}
if(listitem == 1)
{
SetTimer ( "fechar" , 10000 , false ) ;
return 1;
}

return 0;
}
return 0;
}
eu tenho esse mais quando cloco em abrou ou fechar nao acontece nada nem abre e nem fecha me ajuda
Voce esperou os 10 segundos do timer ?
Reply
#36

Quando escolhe portao ex 980 e da continuar nгo acontece nada '--'

OBS: Nгo sei se й sу aqui...
Reply
#37

Quote:
Originally Posted by ScripterInicianteBR
View Post
Quando escolhe portao ex 980 e da continuar nгo acontece nada '--'

OBS: Nгo sei se й sу aqui...
Pode ser conflito com ID's de dialogs com seu GameMode.
Reply
#38

Estб fufando em 0.3.7?

A mim o portao aparece mas nao consigo controlar nem o C funciona
Reply
#39

Quote:
Originally Posted by Ivan_Mota
View Post
Estб fufando em 0.3.7?

A mim o portao aparece mas nao consigo controlar nem o C funciona
Eu uso esse gerador de Portхes. Estб funcionando perfeitamente no 0.3.7

@Edit:
Pode ser conflito com ID's de dialogs com seu GameMode.
By FoRT
Reply
#40

man, baixei o fs e quando tentei criar o portгo no jogo ele nгo cria, nгo aparece nada, eu seleciono o estilo de portгo mas nгo cria o portгo
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)