ok
fist i did:
Код:
new Rmaffia;
new Imaffia;
new nazi;
new MS;
new crip;
new blood;
new bikers;
new triad;
then:
Код:
OnGameModeInit
{
Rmaffia = GangZoneCreate(2116.3157,2018.1381,1847.1304,1730.2048);
Imaffia = GangZoneCreate(2101.3203,1763.3352,2321.5803,1536.6749);
nazi = GangZoneCreate(2420.5078,1465.6532,2598.3381,1065.0911);
MS = GangZoneCreate(2468.6428,766.5423,1971.6904,637.4358);
crip = GangZoneCreate(1199.3474,1806.6642,918.0833,2410.4937);
blood = GangZoneCreate(1207.4971,2511.7642,2076.5649,2893.2329);
bikers = GangZoneCreate(2339.4858,1956.4434,2530.8357,2229.3218);
triad = GangZoneCreate(2515.7734,1949.7729,2682.6323,1613.3665);
}
and then:
Код:
public OnPlayerConnect(playerid)
{
ShowPlayerDialog(playerid,0,DIALOG_STYLE_LIST,"Gang","bloods\ncrips\nMS13\nneo-nazi's\nmaffia\nbikers/ntriads","choose","info");
GangZoneShowForPlayer(playerid,Rmaffia,BLACK);
GangZoneShowForPlayer(playerid,Imaffia,BROWN);
GangZoneShowForPlayer(playerid,nazi,WHITE);
GangZoneShowForPlayer(playerid,MS,YELLOW);
GangZoneShowForPlayer(playerid,crip,BLUE);
GangZoneShowForPlayer(playerid,blood,RED);
GangZoneShowForPlayer(playerid,bikers,ORANGE);
GangZoneShowForPlayer(playerid,triad,PINK);
return 1;
}