PHP код:
public OnGameModeInit()
{
MySQL_Connect();
mysql_log(1);
for(new i = 4; i <= 8; i++)
{
CaptureInfo[i] = TextDrawCreate(21.000000, 226.000000, "~w~Time:~g~0:00~n~~n~~w~Ballas Gang:~g~5~n~~w~Vagos Gang:~r~3");
TextDrawBackgroundColor(CaptureInfo[i], 255);
TextDrawFont(CaptureInfo[i], 2);
TextDrawLetterSize(CaptureInfo[i], 0.280000, 2.200000);
TextDrawColor(CaptureInfo[i], -875770113);
TextDrawSetOutline(CaptureInfo[i], 1);
TextDrawSetProportional(CaptureInfo[i], 1);
//TextDrawUseBox(CaptureInfo[i], 1);
//TextDrawBoxColor(CaptureInfo[i], -1347440862);
TextDrawTextSize(CaptureInfo[i], 210.000000, -223.000000);
TextDrawSetSelectable(CaptureInfo[i], 0);
}
DRAP = TextDrawCreate(499.000000, 136.000000, "~n~~b~- select~n~~g~ next: ~w~q ~n~~g~ last: ~w~e~n~~n~~b~- select color ~n~~g~ next: ~w~num4 ~n~~g~ last: ~w~num6~n~~n~~b~- other ~n~~g~ switch: ~w~sprint~n~~n~~g~- accept: ~w~Y~n~~r~- cancel: ~w~c ~n~");
TextDrawBackgroundColor(DRAP, 255);
TextDrawFont(DRAP, 2);
TextDrawLetterSize(DRAP, 0.290000, 1.000000);
TextDrawColor(DRAP, -1);
TextDrawSetOutline(DRAP, 0);
TextDrawSetProportional(DRAP, 1);
TextDrawSetShadow(DRAP, 1);
TextDrawUseBox(DRAP, 1);
TextDrawBoxColor(DRAP, 112);
TextDrawTextSize(DRAP, 620.000000, -20.000000);
TextDrawSetSelectable(DRAP, 0);
SetGameModeText("Ganton R39-2");
new newhour,newminute,newsecond;
gettime(newhour, newminute, newsecond);
ghour = newhour;
SetWorldTime(ghour);
ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
ShowNameTags(1);
SetNameTagDrawDistance(30.0);
EnableStuntBonusForAll(0);
DisableInteriorEnterExits();
LimitPlayerMarkerRadius(100.0);
ManualVehicleEngineAndLights();
AllowInteriorWeapons(1);
players = cvector();
skin[0] = TextDrawCreate(50.0, 200.0, "LD_BEAT:left");
TextDrawBackgroundColor(skin[0], 255);
TextDrawFont(skin[0], 4);
TextDrawLetterSize(skin[0], 0.500000, 1.000000);
TextDrawColor(skin[0], -1);
TextDrawSetOutline(skin[0], 0);
TextDrawSetProportional(skin[0], 1);
TextDrawSetShadow(skin[0], 1);
TextDrawUseBox(skin[0], 1);
TextDrawBoxColor(skin[0], 255);
TextDrawTextSize(skin[0], 34.000000, 28.000000);
TextDrawSetSelectable(skin[0], true);
skin[1] = TextDrawCreate(590.0, 200.0, "LD_BEAT:right");
TextDrawBackgroundColor(skin[1], 255);
TextDrawFont(skin[1], 4);
TextDrawLetterSize(skin[1], 0.500000, 1.000000);
TextDrawColor(skin[1], -1);
TextDrawSetOutline(skin[1], 0);
TextDrawSetProportional(skin[1], 1);
TextDrawSetShadow(skin[1], 1);
TextDrawUseBox(skin[1], 1);
TextDrawBoxColor(skin[1], 255);
TextDrawTextSize(skin[1], 34.000000, 28.000000);
TextDrawSetSelectable(skin[1], true);
skin[2] = TextDrawCreate(318.000000, 380.000000, "SELECT");
TextDrawAlignment(skin[2], 2);
TextDrawBackgroundColor(skin[2], 255);
TextDrawFont(skin[2], 1);
TextDrawLetterSize(skin[2], 0.679999, 1.900000);
TextDrawColor(skin[2], -1);
TextDrawSetOutline(skin[2], 0);
TextDrawSetProportional(skin[2], 1);
TextDrawSetShadow(skin[2], 1);
TextDrawUseBox(skin[2], 1);
TextDrawBoxColor(skin[2], 0);
TextDrawTextSize(skin[2], 15.000000, 68.000000);
TextDrawSetSelectable(skin[2], true);
skin[3] = TextDrawCreate(318.000000, 400.000000, "~r~CANCEL");
TextDrawAlignment(skin[3], 2);
TextDrawBackgroundColor(skin[3], 255);
TextDrawFont(skin[3], 1);
TextDrawLetterSize(skin[3], 0.679999, 1.900000);
TextDrawColor(skin[3], -1);
TextDrawSetOutline(skin[3], 0);
TextDrawSetProportional(skin[3], 1);
TextDrawSetShadow(skin[3], 1);
TextDrawUseBox(skin[3], 1);
TextDrawBoxColor(skin[3], 0);
TextDrawTextSize(skin[3], 15.000000, 68.000000);
TextDrawSetSelectable(skin[3], true);
//
NameMode = TextDrawCreate(499.91, 2.3,"Ganton-Rp.Ru");
TextDrawLetterSize(NameMode, 0.39, 1.494);
TextDrawAlignment(NameMode, 1);
TextDrawColor(NameMode, 0xCC6600FF);
TextDrawSetShadow(NameMode, 0);
TextDrawSetOutline(NameMode, 1);
TextDrawBackgroundColor(NameMode, 51);
TextDrawFont(NameMode, 1);
TextDrawSetProportional(NameMode, 1);
// IntroTextDraw();
Pickups();
Texts();
Vehicles();
Objects();
LoadBoxObjects();
CreateMenus();
mysql_function_query(DATABASE,"SELECT * FROM `fraction`", true, "LoadFraction", "");
mysql_function_query(DATABASE,"SELECT * FROM `cars`", true, "LoadCars", "");
mysql_function_query(DATABASE,"SELECT * FROM `others`", true, "LoadOther", "");
mysql_function_query(DATABASE,"SELECT * FROM `enters`", true, "LoadEnters", "");
mysql_function_query(DATABASE,"SELECT * FROM `bizz`", true, "LoadBizz", "");
mysql_function_query(DATABASE,"SELECT * FROM `house`", true, "LoadHouse", "");
mysql_function_query(DATABASE,"SELECT * FROM `vehicles`", true, "LoadVehicles", "");
mysql_function_query(DATABASE,"SELECT * FROM `gangzone`", true, "LoadGangZones", "");
mysql_function_query(DATABASE,"SELECT * FROM `atm`", true, "LoadATM", "");
mysql_function_query(DATABASE,"SELECT * FROM `greenzone`", true, "LoadZone", "");
mysql_function_query(DATABASE,"SELECT * FROM `gps`", true, "LoadGPS", "");
mysql_function_query(DATABASE,"SELECT * FROM `workshops`", true, "LoadWorkshops", "");
priztime = gettime() + random(3600) + 10800;
for(new i = 0; i < MAX_VEHICLES; i++) SetVehicleParamsEx(i,0,0,0,0,0,0,0), Fuell[i] = float(150);
DrugsCash = randomEx(3,5);
SetTimer("Second", 1000, true);
//SetTimer("SaveAll", 3600000,true);
SetTimer("Blurb",1400000,1);
Weather = 10;
return true;
}