30.03.2016, 08:16
PHP код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1448.6843,-2286.8081,13.5469);
SetPlayerCameraPos(playerid, 1440.2529,-2286.7510,13.5469);
SetPlayerCameraLookAt(playerid, 1440.2529,-2286.7510,13.5469);
for(new i;i<sizeof(PasswordClass);i++)
{
if(classid == PasswordClass[i])
{
ShowPlayerDialog(playerid,DIALOG_SKINPW,DIALOG_STY LE_INPUT,"Само членове на Армията знаят паролата! И имат право да използват тези скинове!");
break;
}
}
return 1;
}
//OnDialogResponse:
if(dialogid == DIALOG_SKINPW)
{
if(response)
{
if(!strcmp(inputtext,"protectordie",true))
{
SpawnPlayer(playerid);
}
}
return 1;
}