07.03.2012, 10:47
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
switch(dialogid)
{
case 1:
{
if(strval(inputtext) == 1337)
{
SendClientMessage(playerid,COLOR_WHITE,"Correct Password. Skin taken.");
SetPlayerSkin(playerid,223);
TogglePlayerControllable(playerid,true);
TogglePlayerSpectating(playerid,0);
SetCameraBehindPlayer(playerid);
SpawnPlayer(playerid);
}
else
{
SendClientMessage(playerid,COLOR_GREY,"Invalid Password !");
return 1;
}
}
}
}
public OnPlayerRequestClass(playerid, classid)
{
if(classid == 4 || classid == 5)
{
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Skin","This skin requers a password !\nType down the correct password to choose it!","OK","Cancel");
}


I can spawn with normal classes ... Bud when I use passed skin it's says server close connection.
)) Gived you + rep