17/03/2023 15:29
(17/03/2023 02:12)SkayBr Escreveu:Código PHP:public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, X, Y, Z)) // Coloque as cordenadas do actor!
{
ShowPlayerDialog // Mostre sua dialog!
}
}
return 1;
}
Só complementando:
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
https://sampwiki.blast.hk/wiki/OnDialogResponse