[Ajuda] Refri e Salgadinho
#1

Como faзo para dar funзхes ao comer e beber naquelas maquianas?
Colocar mensagem quando usar e tirar dinheiro do player e tal..?
Reply
#2

Vocк irб precisar dessas funзхes, estude-as e tente fazer seu cуdigo. Poste o cуdigo caso precisar de ajuda.

https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
https://sampwiki.blast.hk/wiki/ApplyAnimation
https://sampwiki.blast.hk/wiki/GetPlayerHealth
https://sampwiki.blast.hk/wiki/SetPlayerHealth
Reply
#3

Quote:
Originally Posted by EditPawn
Посмотреть сообщение
Bбsicamente o que o @EditPawno postou:

>IsPlayerInRangeOfPoint:
*Vai servir para verificar se vc estб na regiгo/бrea prуxima das mбquinas/lancherias e talz...

>ApplyAnimation:
*Opcional, mas bom em RPG, faz a animaзгo que vc quiser, no seu caso a anim de Comer.

>GetPlayerHealth
>SetPlayerHealth
*Essas duas funзхes vгo ser responsбveis por pegar (Get) e setar (Set) a vida do player que comer/beber algo! Para isso use Float, assim vc aumenta +xx.x de health.
Reply
#4

Acho melhor detectar pela animaзгo.
Reply
#5

Vocк pode detectar se o jogador apertou enter prуximo das posiзхes das maquinhas.

Veja esses links:
IsPlayerInRangeOfPoint
OnPlayerKeyStateChange
Reply
#6

Quote:
Originally Posted by FanonRiouDiou
Посмотреть сообщение
Acho melhor detectar pela animaзгo.
Mesmo assim precisarб checar se o player estб na area correta, ou ele irб comer ao vento!
Reply
#7

Pode ser ъtil: https://sampforum.blast.hk/showthread.php?tid=564424
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)