Checkpoint dialog TP's player back to spawn
#1

Resolved!!!!

I am trying to make a delivery job with a dialog to select which delivery you want todo, all that the dialog needs to do is SetPlayerCheckpoint, which it does, but it sends the player back to the spawn spot.

The command:
Код:
YCMD:loadvan(playerid, params[], help)
{
	ShowPlayerDialog(playerid, DIALOG_FEDEX, DIALOG_STYLE_LIST, "Deliver!", "Car parts", "Delivery", "Cancel");
	return 1;
}
The Dialog:
Код:
if(dialogid == DIALOG_FEDEX)
		{
		    if(!response) return 0;
		    if(response)
		    {
		        if(listitem == 0)
		        {
				CP[playerid] = 1;
				SetPlayerCheckpoint(playerid, -2135.0344, -247.7448, 34.9813, 10);
				SendClientMessage(playerid, 0xC2A2DAAA, "*Deliver the Car parts to Wheel Arch Angels ASAP!");
				return 1;
				}
			}
I really need your guys help on this

Thank you in advance
Reply
#2

I dont understand where is the hell problem omg explain it
Reply
#3

When I type the command "/loadvan" the dialog comes up like its suppose to. in the dialog I can click on "Car parts" which will add a checkpoint to the coordinates I put there, but when the checkpoint gets added it respawns the player to Unity station.
Reply
#4

Show us your 'CP' thing.
Reply
#5

Resolved
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)