да помогу! проверка на интерьер как ты хочишь? с поролем или с спецальным кодом?Добавлено (04.12.2015, 21:49)
---------------------------------------------
if(strcmp(cmd, "/test", true) == 0)
{
SetPVarInt(playerid, "ActivareParola", 1111);
ShowPlayerDialog(playerid,1989,DIALOG_STYLE_INPUT,"Проверка интерьера!","{33FF00}Пожалуито ведите пороль интерьера!","OK","");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1989)
{
if(GetPVarInt(playerid,"ActivareParola") == strval(inputtext))
{
new string[128],playerName[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
SetPlayerPos(playerid,915.7619,-1036.7122,95.0234);
SetPlayerFacingAngle(playerid,182.4066);
PlayerPlaySound(playerid,19800,0.0,0.0,0.0);
SetPlayerVirtualWorld(playerid, 3);
format(string, sizeof(string),"%s {33FF00}тпшелся в интерьер [Mega Gold]!",playerName);
SendClientMessageToAll(red, string);
}
else
ShowPlayerDialog(playerid,1989,DIALOG_STYLE_INPUT,"Проверка интерьера!","{FF0000}Неверныи пороль!\n{CCCC00}Пороль из 4 цыфры! Ведите только цыфры!\n{33FF00}Пожалуито ведите пороль интерьера!","OK","");
PlayerPlaySound(playerid,41603,0.0,0.0,0.0);
}
return 1;
}
ПОРОЛЬ 1111