Sergo
Умник
Здравствуйте уважаемы пользователи.
Сделал работу почтальона.
Сделал работу почтальона.
Ко всем new
PHP:
new picpoh[2];
new picpoh2[6];
new chekpoh[MAX_PLAYERS];
new carpoh[2];
new pohjob[MAX_PLAYERS];
new pohjobpic;
PHP:
if(dialogid == 3489)
{
if(response)
{
SendClientMessage(playerid,0x88AA88AA,"Вы устроились на работу почтальона");
SetPlayerSkin(playerid, 35);
pohjob[playerid] = 1;
DisablePlayerCheckpoint(playerid);
return 1;
}
else
{
SendClientMessage(playerid,0x88AA88AA,"Вы уволились с работы почтальона");
SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
pohjob[playerid] = 0;
DisablePlayerCheckpoint(playerid);
return 1;
}
}
PHP:
if(chekpoh[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_WHITE,"Вы успешно доставили посылку");
SendClientMessage(playerid, COLOR_WHITE,"Отправляйтесь на почту");
chekpoh[playerid] = 0;
new randzp = random(4000);
PlayerInfo[playerid][pCash] += randzp;
new string11[126];
format(string11,sizeof(string11),"~y~+%d~r~$",randzp);
GameTextForPlayer(playerid, string11, 5000, 1);
return 1;
}
PHP:
else if(pickupid == picpoh[0])
{
SetPlayerPos(playerid,2533.1829,-1286.3713,1047.4430);
SetPlayerInterior(playerid, 2);
SetPlayerVirtualWorld(playerid, 5);
SetPlayerFacingAngle(playerid, 181.4799);
return true;
}
else if(pickupid == picpoh[1])
{
SetPlayerPos(playerid,1631.8494,-1170.1661,24.0781);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerFacingAngle(playerid, 1.8453);
return true;
}
else if(pickupid == picpoh2[0] && picpoh2[2] && picpoh2[5])
{
if(pohjob[playerid] == 0) return SendClientMessage(playerid, COLOR_WHITE,"Вы не работник почты");
chekpoh[playerid] = 1;
new randhome = random(600);
SetPlayerCheckpoint(playerid, HouseInfo[randhome][hEntrancex],HouseInfo[randhome][hEntrancey],HouseInfo[randhome][hEntrancez],3.0);
new string22[128];
format(string22, sizeof(string22), "Вы взяли посылку для %s",HouseInfo[randhome][hOwner]);
SendClientMessage(playerid, COLOR_WHITE, string22);
return true;
}
else if(pickupid == pohjobpic)
{
ShowPlayerDialog(playerid,3489,DIALOG_STYLE_MSGBOX,"Почта","Вы хотите начать работу почтальона?","Начать","Уволиться");
return true;
}
PHP:
if(newcar >= carpoh[0] && newcar <= carpoh[1])
{
if(pohjob[playerid] == 1) { }
else
{
SendClientMessage(playerid, COLOR_GREY, "Вы не работник почты");
RemoveVehicle(playerid);
}
}
PHP:
pohjobpic = CreatePickup(1275, 2, 2534.4092,-1305.8862,1044.1250,5);
picpoh[0] = CreatePickup(1318, 23, 1631.8917,-1172.7200,24.0843);
picpoh[1] = CreatePickup(1318, 23, 2531.5444,-1281.8341,1048.2891,5);
picpoh2[0] = CreatePickup(1580, 2, 2543.0884,-1300.0936,1044.1250,5);
picpoh2[1] = CreatePickup(1577, 2, 2551.2021,-1300.0917,1044.1250,5);
picpoh2[2] = CreatePickup(1580, 2, 2559.2439,-1287.7734,1044.1250,5);
picpoh2[3] = CreatePickup(1577, 2, 2551.1301,-1287.4430,1044.1250,5);
picpoh2[4] = CreatePickup(1580, 2, 2543.0396,-1287.4451,1044.1250,5);
picpoh2[5] = CreatePickup(1577, 2, 2551.2021,-1300.0917,1044.1250,5);
carpoh[0] = AddStaticVehicle(586,1627.3364,-1168.2634,23.5978,360.0000,6,6);
AddStaticVehicle(586,1624.6862,-1168.1846,23.5983,359.9999,6,6); // car2
AddStaticVehicle(586,1622.2076,-1168.2539,23.5980,359.9997,6,6); // car3
AddStaticVehicle(586,1620.0237,-1168.1763,23.5983,3.3053,6,6); // car4
carpoh[1] = AddStaticVehicle(586,1618.2445,-1168.2067,23.5980,2.6488,6,6); // car5
Скрины
Чтобы видеть скрытое содержание Зарегистрируйтесь на форуме!
Чтобы видеть скрытое содержание Зарегистрируйтесь на форуме!
Последнее редактирование:
