[Ajuda] Estacionamento
#1

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
Reply
#2

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.
Reply
#3

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

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.
Reply
#5

Obrigado
Reply
#6

mas por exemplo se eu colocar la assim


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

}

vai remover 20?
Reply
#7

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
Reply
#8

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?
Reply
#9

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...
Reply
#10

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

}

Se eu fizer isso vai dar certo?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)