SA-MP Forums Archive
[PEDIDO] Siatema de ejetar :D - 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: [PEDIDO] Siatema de ejetar :D (/showthread.php?tid=160201)



[PEDIDO] Sistema de ejetar :D - [GET]Vidaloka - 16.07.2010

Olб galera,Sou iniciante em pawno =D alguйm poderia me disponibiliza um sistema em que o cara que esta dirigindo um veiculo possa ejetar um passageiro de seu carro usando /ejetar [id]??

Se alguйm poder me ajudar agradeзo muito.


OBS: Procurei no search e nгo achei nada relacionado =/


Re: [PEDIDO] Siatema de ejetar :D - zSuYaNw - 16.07.2010

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


Respuesta: Re: [PEDIDO] Siatema de ejetar :D - [GET]Vidaloka - 16.07.2010

Quote:
Originally Posted by [Full]Garfield[XDB]
Посмотреть сообщение
entгo man,eu jб vi isso,porem como sou novo nгo sei fazer o comando /ejetar [id] e tals.... =/


Re: Respuesta: Re: [PEDIDO] Siatema de ejetar :D - zSuYaNw - 16.07.2010

Quote:
Originally Posted by [GET]Vidaloka
Посмотреть сообщение
entгo man,eu jб vi isso,porem como sou novo nгo sei fazer o comando /ejetar [id] e tals.... =/
Existe uma frase assim :

Quem comeзa pelo topo, Ao topo nunca hб de chegar (by: Andmeida10)
entгo aprende o bбsico Primeiro depois pegue coisas mais dificeis.


Respuesta: Re: Respuesta: Re: [PEDIDO] Siatema de ejetar :D - [GET]Vidaloka - 16.07.2010

Quote:
Originally Posted by [Full]Garfield[XDB]
Посмотреть сообщение
Existe uma frase assim :

Quem comeзa pelo topo, Ao topo nunca hб de chegar (by: Andmeida10)
entгo aprende o bбsico Primeiro depois pegue coisas mais dificeis.
Vlw pela grande ajuda ¬¬'


Re: [PEDIDO] Siatema de ejetar :D - zSuYaNw - 16.07.2010

Bom eu nгo vou discutir,

pawn Код:
if(strcmp(cmd,"/ejetar",true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid,COR,"Uso correto: /eject [id do player]");
return 1;
}
giveplayerid = strval(tmp);
if(IsPlayerInAnyVehicle(giveplayerid))
{
RemovePlayerFromVehicle(giveplayerid);
return 1;
}
else SendClientMessage(playerid,Cor,"Este Player Nгo esta em um veнculo");
return 1;
}



Respuesta: Re: [PEDIDO] Siatema de ejetar :D - [GET]Vidaloka - 16.07.2010

Quote:
Originally Posted by [Full]Garfield[XDB]
Посмотреть сообщение
Bom eu nгo vou discutir,

pawn Код:
if(strcmp(cmd,"/ejetar",true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid,COR,"Uso correto: /eject [id do player]");
return 1;
}
giveplayerid = strval(tmp);
if(IsPlayerInAnyVehicle(giveplayerid))
{
RemovePlayerFromVehicle(giveplayerid);
return 1;
}
else SendClientMessage(playerid,Cor,"Este Player Nгo esta em um veнculo");
return 1;
}
Muito obrigado,funcionou certinho.Entгo cara eu refleti sobre o que voce disse,e percebi que voce estб certo nгo devo comeзar do topo desculpa pela ironia,vou comeзar de baixo e comeзar a estudar mais esses cуdigos,mais uma vez muito obrigado amigo!