30.08.2011, 09:01
Код:
public OnGameModeInit() { mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS); mysql_debug(1); //====[Debug Abilitato] ==================================== SetGameModeText(GAMETEXT); print("====================================================================="); AddVehiclesFromFile(); AddPickupFromFile(); AddLabelsFromFile(); AddMapIconFromFile(); print("=====================================================================\n"); //====[TextDraws] ========================================================== Textdraw0 = TextDrawCreate(0.000000,438.000000,""); Textdraw1 = TextDrawCreate(486.000000,438.000000,"www.mysite.com"); TextDrawUseBox(Textdraw0,1); TextDrawBoxColor(Textdraw0,0x00000099); TextDrawTextSize(Textdraw0,638.000000,-7.000000); TextDrawAlignment(Textdraw0,0); TextDrawAlignment(Textdraw1,0); TextDrawBackgroundColor(Textdraw0,0x000000ff); TextDrawBackgroundColor(Textdraw1,0x000000ff); TextDrawFont(Textdraw0,3); TextDrawLetterSize(Textdraw0,0.399999,0.899999); TextDrawFont(Textdraw1,3); TextDrawLetterSize(Textdraw1,0.399999,0.899999); TextDrawColor(Textdraw0,0xff0000cc); TextDrawColor(Textdraw1,0xffffffff); TextDrawSetOutline(Textdraw1,1); TextDrawSetProportional(Textdraw0,1); TextDrawSetProportional(Textdraw1,1); TextDrawSetShadow(Textdraw0,2); TextDrawSetShadow(Textdraw1,1); TextDrawShowForAll(Text:Textdraw0); TextDrawShowForAll(Text:Textdraw1); //====[Stuff] ============================================================== Cancello0 = CreateObject(976,-626.32189941,1592.87341309,0.00000000,0.00000000,0.00000000,206.00000000); //object(phils_compnd_gate) ZonaRelax Cancello1 = CreateObject(976,-626.10388184,1592.91943359,0.00000000,0.00000000,0.00000000,35.99914551); //object(phils_compnd_gate) ZonaRelax return 1; }