13.02.2012, 15:45
Hello,
This is my first time with Textdraws and I was wondering what else I need to do?
This is my first time with Textdraws and I was wondering what else I need to do?
Код:
// This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include <a_samp> new Text:Textdraw1; new vFuel[MAX_VEHICLES]; #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Blank Filterscript by your name here"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); } #endif public OnGameModeInit() { new id = GetPlayerVehicleID(playerid); for(new i = 0; i < MAX_VEHICLES; i++) { vFuel[i] = 100; } Textdraw1 = TextDrawCreate(500 ,108 , "Fuel: %d", vFuel[id]); TextDrawFont(Textdraw1 , 2); TextDrawLetterSize(Textdraw1 , 0.5, 3.5); TextDrawColor(Textdraw1 , 0xb80300FF); TextDrawSetOutline(Textdraw1 , false); TextDrawSetProportional(Textdraw1 , false); TextDrawSetShadow(Textdraw1 , 1); return 1; }