SA-MP Forums Archive
[Ajuda] Estacionamento - 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] Estacionamento (/showthread.php?tid=548590)



Estacionamento - Andelux - 30.11.2014

Olб eu qria criar 1 sistema de estacionamento se vcs puderem me ajudar.quero 1 cancela/portao que quando se digita o cmd ela se abre e dps d alguns segundos se fecha e й descontado 1 certa quantia de dinheiro do player.obrigado.: P


Re: Estacionamento - ipsLuan - 30.11.2014

Settimer, GivePlayerMoney, CreateObject e MoveObject.

Settimer pra atualizar a public a cada 5000ms.
GivePlayerMoney pra retirar a grana.
CreateObject pra criar o portгo.
MoveObject pra mover o portгo.


Re: Estacionamento - Andelux - 30.11.2014

tem como detalhar n? tipo colocar os codigos prontos tipo ja no geito de colocar as coordenadas tipo isso sou iniciante pwn


Re: Estacionamento - MultiKill - 30.11.2014

Se й iniciante entгo recomendo:

https://sampforum.blast.hk/showthread.php?tid=147464
https://sampforum.blast.hk/showthread.php?tid=267034
https://sampforum.blast.hk/showthread.php?tid=428964
https://sampforum.blast.hk/showthread.php?tid=497801
https://sampforum.blast.hk/showthread.php?tid=252966
https://sampforum.blast.hk/showthread.php?tid=120278
https://sampforum.blast.hk/showthread.php?tid=118857

Prontinho como vocк que.


Re: Estacionamento - Andelux - 30.11.2014

Obrigado


Re: Estacionamento - Andelux - 30.11.2014

mas por exemplo se eu colocar la assim


if( !strcmp( cmdtext, "/teste" ))
{
GetPlayerMoney 20

}

vai remover 20?


Re: Estacionamento - MultiKill - 30.11.2014

GivePlayerMoney

Se colocar - no valor que й para dar ele vai retirar o valor.
pawn Код:
GivePlayerMoney(playerid, -100); // retira 100 do jogador
GivePlayerMoney(playerid, 100); // Da mais 100 ao jogador



Re: Estacionamento - Andelux - 30.11.2014

cara tem como vc fazer 1 pedaзo n? pra mim tipo o codigo
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
// Award $1000 to the killer
GivePlayerMoney(killerid, 1000);
SendClientMessage(killerid, -1, "You have been awarded $1000 for the kill.");
}

tipo isso pra mim n?


Re: Estacionamento - n0minal - 30.11.2014

Quote:
Originally Posted by Andelux
Посмотреть сообщение
cara tem como vc fazer 1 pedaзo n? pra mim tipo o codigo
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
// Award $1000 to the killer
GivePlayerMoney(killerid, 1000);
SendClientMessage(killerid, -1, "You have been awarded $1000 for the kill.");
}

tipo isso pra mim n?
Isso vai dar $1000 pra qualquer player que matar qualquer outro player...


Re: Estacionamento - Andelux - 30.11.2014

if( !strcmp( cmdtext, "/teste" ))
{
GivePlayerMoney -200

}

Se eu fizer isso vai dar certo?