15.01.2012, 14:34
Hello,
i've got a little problem right here...
This looks cool, but IsPlayerInRangeOfPoint Is not Working, And players can type /Buy anywhere...
Any kind of help in this will be appreciated muchly.
Thankx.
i've got a little problem right here...
pawn Code:
if (strcmp("/buy", cmdtext, true, 10) == 0){
if(!IsPlayerInRangeOfPoint(playerid, 2.0, 368.6851,-1279.7899,13.5469))
{
SendClientMessage(playerid,0xFFFFFFFF,"You Are Not Near Ammu-Nation Entrance!");
ShowPlayerDialog(playerid, 3,DIALOG_STYLE_LIST, "{F81414}Ammu-Nation!","1.Ak47 {4500$} \n2.M4 {4800$} \n3.Deagle {1600$} \n4. SawnOff {2700$} \n5.Silenced Pistol {1950$}.","Okay","Cancel");
}
return 1;
}
Any kind of help in this will be appreciated muchly.
Thankx.