Checkpoint dialog TP's player back to spawn - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Checkpoint dialog TP's player back to spawn (
/showthread.php?tid=454542)
Checkpoint dialog players earn cash without going through checkpoints -
Blademaster680 - 29.07.2013
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
Re: Checkpoint dialog TP's player back to spawn -
dEcooR - 29.07.2013
I dont understand where is the hell problem omg explain it
Re: Checkpoint dialog TP's player back to spawn -
Blademaster680 - 29.07.2013
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.
Re: Checkpoint dialog TP's player back to spawn -
RedJohn - 29.07.2013
Show us your 'CP' thing.
Re: Checkpoint dialog TP's player back to spawn -
Blademaster680 - 29.07.2013
Resolved