help please - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help please (
/showthread.php?tid=174550)
help please -
ZachZ - 06.09.2010
Well I got my server,
And I locked several skins to a certain Skin ID, where you need to type a password in to spawn in that certain skin. I was wondering if I could use a Input Dialog to do this. How would I go on doing this? Everytime I try to add the dialog it either shows before or after u type the password for the skin.
Thank you
Zach
Re: help please -
CyNiC - 06.09.2010
Put the Dialogs in the OnPlayerRequestSpawn, like this:
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
if(GetPlayerSkin(playerid) == YOURSKINID)
{
ShowPlayerDialog...
return 0;
}
return 1;
}
Re: help please -
ZachZ - 06.09.2010
Alright cynic,
Thanks much.. I had to remember where I needed to place them.
Zach