How can i make if i say "Hello trader" near NPC Bot Dialog will open
#1

I want to do like if i say "Hello Trader" near NPC Bot Dialogue Will open How can i do like that?
Reply
#2

OnPlayertext;
Code:
if(!strcmp(text,"Hello trader", true))
{
new Float:x,Float:y,Float:z;
GetPlayerPos(BOTID,x,y,z); //change BOTID
if(!IsPlayerInRageOfPoint(playerid,10,x,y,z)) return 1;
ShowPlayerDialog(playerid, ..... );
return 0;
}
Reply
#3

Thank you
Reply
#4

Damn

Code:
error 017: undefined symbol "IsPlayerInRageOfPoint"
Reply
#5

Quote:
Originally Posted by hardstop
Damn

Code:
error 017: undefined symbol "IsPlayerInRageOfPoint"
change it to
pawn Code:
IsPlayerInRangeOfPoint
not IsPlayerInRageOfPoint.
Reply
#6

Im bad in english. :d
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)