Serejka_Rich
Умник
Ко всем new:
Ко всем командам:
Ко всем диалогам:
PHP:
new predlojitmp[MAX_PLAYERS];
PHP:
if (strcmp(cmd, "/modermp", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 1)
{
return 1;
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
ShowPlayerDialog(i, 14155, DIALOG_STYLE_MSGBOX,"{ffa500}YourDream-Rpg","{FFFFFF}Вы хотите участвовать в мероприятии от администрации?","ДА","НЕТ");
predlojitmp[i] = playerid;
}
format(string, sizeof(string), "Вы начали собирать участников");
SendClientMessage(playerid, COLOR_GREEN, string);
}
return 1;//диалог 14155 замените на свой
}
PHP:
if(dialogid == 14155)
{
if(response)
{
new plo = predlojitmp[playerid];
new Float:plocx,Float:plocy,Float:plocz;
GetPlayerPos(plo, plocx, plocy, plocz);
SetPlayerPos(playerid,plocx,plocy+2, plocz);
SetPlayerInterior(playerid,GetPlayerInterior(plo));
SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(plo));
SendClientMessage(playerid, COLOR_LIGHTGREEN, "* Вы были телепортированы к месту проведения МП!");
SendClientMessage(playerid, COLOR_LIGHTGREEN, "* Ваше оружие и броня отобраны!");
SetPlayerColor(playerid,0xE65131AA);
SetPlayerArmour(playerid,0);
ResetPlayerWeapons(playerid);
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Вы отказались от участия");
}
}
Последнее редактирование:
