FastFood
#1

Hello community. I scripted this code all by myself:

Код:
CMD:fastfood(playerid, params[])
{
     SetPlayerCheckpoint(playerid, 2075.3000488281,1394,10.699999809265, 2);
     if(IsPlayerInCheckpoint(playerid))
     {
	 ShowPlayerDialog(playerid, 20324, DIALOG_STYLE_LIST, "Fast-Food shop.", "Hamburger(100$)\nHotDog(150$)\nPie(200$)\nBigMomma Burger(500$)", "I'll take this one.", "No thanks.");
     }
     else
     {
     SendClientMessage(playerid, 0xAA3333AA, "You're not near Fast-Food stand!");
     }
     return 1;
}
As some may know, I am not very familiar with Pawno but I know how to make some thingies. Now what's the problem here? This is the problem:
- I want to make the checkpoint invisible, or I just want to make a marker in which /fastfood can be used, I don't know how to make that.
- In checkpoint /fastfood doesn't work. :S
I managed to solve others but this is just impossible to be solved with my brain. If someone knows how to make it I'll be more than glad to rep up
Reply
#2

As far as I know you cannot make the checkpoint invisible. About the marker, you mean a map icon in the minimap? You can use the map icon and then use IsPlayerInRangeOfPoint function to check if the player is in range of a point (the coordinates of the checkpoint in your case).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)