help - 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: help (
/showthread.php?tid=598062)
help -
rambalili2 - 08.01.2016
Hi so i made this spawn selection and if there is a way that i can do this
i want that when a player presses f4 after death it will show him this dialog again
PHP код:
ShowPlayerDialog(playerid, spawndialog, DIALOG_STYLE_LIST, "Spawn","Los Santos\nSan Fierro\nLas Venturas","Select","Cancel");
thanks
Re: help -
Amunra - 08.01.2016
PHP код:
public OnPlayerRequestClass(playerid, classid)
{
ShowPlayerDialog(playerid, spawndialog, DIALOG_STYLE_LIST, "Spawn","Los Santos\nSan Fierro\nLas Venturas","Select","Cancel");
//Your More Code...
return 1;
}
Just That
Re: help -
rambalili2 - 08.01.2016
yeah i know but the thing is that they can still see the arrows and they can press spawn
Re: help -
Amunra - 08.01.2016
Or You can Add This at OnPlayerSpawn ! And If Player Choosing They Can Spawn again At They choice spawn
Re: help -
Riddick94 - 08.01.2016
Quote:
Originally Posted by rambalili2
yeah i know but the thing is that they can still see the arrows and they can press spawn
|
OnPlayerRequestSpawn, return in this callback '0' when they see dialog. My opinion on these buttons have been said a long time ago. That's why I spawn players when they connect and use my custom class selection.
Re: help -
rambalili2 - 08.01.2016
I tryed using the mSelection include with this spawn and my game just crashes coz it keeps spawning the player can you give me any ideas of making my own class selection?