20.11.2014, 15:45
Hello people.
I am having annoying problem when i stand on the checkpoint i suppose to teleport to ammonation but instead
I'm falling in the sky and yes i have tried to set the pos little higher and the second problem
That it gives me a dialog of weapons but it's not suppose to give me only when i go inside the ammonation and stand on the checkpoint that suppose to give me the dialog
Anyways. Here is my code
And please when you fix it please explain how'd you did it.
Thanks.
I am having annoying problem when i stand on the checkpoint i suppose to teleport to ammonation but instead
I'm falling in the sky and yes i have tried to set the pos little higher and the second problem
That it gives me a dialog of weapons but it's not suppose to give me only when i go inside the ammonation and stand on the checkpoint that suppose to give me the dialog
Anyways. Here is my code
Код:
public OnPlayerEnterCheckpoint(playerid) { if(IsPlayerInRangeOfPoint(playerid, 5, 2400.4871,-1981.3549,13.5469)) { SetPlayerPos(playerid, 316.6255,-168.4557,999.9716); SetPlayerCheckpoint(playerid, 311.8095,-165.7344,999.6010,181.4448); } if(IsPlayerInCheckpoint(playerid)) { ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Choose your weapon", "Deagle\nShotgun\nSniper\nM4\nMP5\nCombat\nGrenade\nTec9", "Purchase", "Exit"); } return 1; }
Thanks.