09.02.2010, 04:56
Код:
public OnPlayerRequestClass(playerid,classid)
{
if(classid == TheSkinNumberGoesHere)
{
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"EnterPassword","Enter your password below:","Spawn","Cancel");
}
return 1;
}
then on dialog response
if(dialogid == 1)
{
heregoes the function you want w.e iff they enter the right password will spawn em
also define what that Input box we did below effect will be
}
else
{
here you define what heppens if the player enter the wrong password
a new dialog window and a message maybe? so they have to reenter password idk
i think this is enought help i have to go sleep later :D
}
anyways gtg later

