17/03/2023 02:12
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;
}
?