Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ================================================================================
- Dynamisches GPS System Inc. Tacho by Items4Landwirt aka. Slash
- Um das Script zu nutzen werden 2 definierungen im Gamemode benötigt:
- #define MAX_GPS 20 -> definiert die maximale anzahl von den Wegpunkten
- #define GPSTacho -> Aktiviert den Tacho, falls nicht benötigt einfach weglassen
- Es ist verboten:
- - Das Script als seines auszugeben
- - Es erneut hochzuladen, außer der Verweiß zum Originalthread ist enthalten
- - Meinen Namen zu entfernen, es sieht ja eh keiner
- - Das Script zu verkaufen.
- In Sofern wünsche ich viel Spaß damit.
- Freundliche Grüße:
- Slash ™
- ================================================================================
- */
- #include <a_samp>
- #include <ocmd>
- enum gpsi
- {
- bool:erstellt,
- Name[40],
- Float:GPSX,
- Float:GPSY,
- Float:GPSZ
- }
- new gps[MAX_GPS][gpsi];
- enum
- {
- DIALOG_CREATE=9000,
- DIALOG_GPS
- }
- new DB:data,dialog[MAX_PLAYERS],GPSName[MAX_PLAYERS][30],select[MAX_PLAYERS],NavActive[MAX_PLAYERS],NavActiveID[MAX_PLAYERS];
- #if defined GPSTacho
- new PlayerText:GPSText[MAX_PLAYERS][11];
- new VehicleNames[212][] = {
- {"Landstalker"},{"Bravura"},{"Buffalo"},{"Linerunner"},{"Perrenial"},{"Sentinel"},{"Dumper"},
- {"Firetruck"},{"Trashmaster"},{"Stretch"},{"Manana"},{"Infernus"},{"Voodoo"},{"Pony"},{"Mule"},
- {"Cheetah"},{"Ambulance"},{"Leviathan"},{"Moonbeam"},{"Esperanto"},{"Taxi"},{"Washington"},
- {"Bobcat"},{"Mr Whoopee"},{"BF Injection"},{"Hunter"},{"Premier"},{"Enforcer"},{"Securicar"},
- {"Banshee"},{"Predator"},{"Bus"},{"Rhino"},{"Barracks"},{"Hotknife"},{"Trailer 1"},{"Previon"},
- {"Coach"},{"Cabbie"},{"Stallion"},{"Rumpo"},{"RC Bandit"},{"Romero"},{"Packer"},{"Monster"},
- {"Admiral"},{"Squalo"},{"Seasparrow"},{"Pizzaboy"},{"Tram"},{"Trailer 2"},{"Turismo"},
- {"Speeder"},{"Reefer"},{"Tropic"},{"Flatbed"},{"Yankee"},{"Caddy"},{"Solair"},{"Berkley's RC Van"},
- {"Skimmer"},{"PCJ-600"},{"Faggio"},{"Freeway"},{"RC Baron"},{"RC Raider"},{"Glendale"},{"Oceanic"},
- {"Sanchez"},{"Sparrow"},{"Patriot"},{"Quad"},{"Coastguard"},{"Dinghy"},{"Hermes"},{"Sabre"},
- {"Rustler"},{"ZR-350"},{"Walton"},{"Regina"},{"Comet"},{"BMX"},{"Burrito"},{"Camper"},{"Marquis"},
- {"Baggage"},{"Dozer"},{"Maverick"},{"News Chopper"},{"Rancher"},{"FBI Rancher"},{"Virgo"},{"Greenwood"},
- {"Jetmax"},{"Hotring"},{"Sandking"},{"Blista Compact"},{"Police Maverick"},{"Boxville"},{"Benson"},
- {"Mesa"},{"RC Goblin"},{"Hotring Racer A"},{"Hotring Racer B"},{"Bloodring Banger"},{"Rancher"},
- {"Super GT"},{"Elegant"},{"Journey"},{"Bike"},{"Mountain Bike"},{"Beagle"},{"Cropdust"},{"Stunt"},
- {"Tanker"}, {"Roadtrain"},{"Nebula"},{"Majestic"},{"Buccaneer"},{"Shamal"},{"Hydra"},{"FCR-900"},
- {"NRG-500"},{"HPV1000"},{"Cement Truck"},{"Tow Truck"},{"Fortune"},{"Cadrona"},{"FBI Truck"},
- {"Willard"},{"Forklift"},{"Tractor"},{"Combine"},{"Feltzer"},{"Remington"},{"Slamvan"},
- {"Blade"},{"Freight"},{"Streak"},{"Vortex"},{"Vincent"},{"Bullet"},{"Clover"},{"Sadler"},
- {"Firetruck LA"},{"Hustler"},{"Intruder"},{"Primo"},{"Cargobob"},{"Tampa"},{"Sunrise"},{"Merit"},
- {"Utility"},{"Nevada"},{"Yosemite"},{"Windsor"},{"Monster A"},{"Monster B"},{"Uranus"},{"Jester"},
- {"Sultan"},{"Stratum"},{"Elegy"},{"Raindance"},{"RC Tiger"},{"Flash"},{"Tahoma"},{"Savanna"},
- {"Bandito"},{"Freight Flat"},{"Streak Carriage"},{"Kart"},{"Mower"},{"Duneride"},{"Sweeper"},
- {"Broadway"},{"Tornado"},{"AT-400"},{"DFT-30"},{"Huntley"},{"Stafford"},{"BF-400"},{"Newsvan"},
- {"Tug"},{"Trailer 3"},{"Emperor"},{"Wayfarer"},{"Euros"},{"Hotdog"},{"Club"},{"Freight Carriage"},
- {"Trailer 3"},{"Andromada"},{"Dodo"},{"RC Cam"},{"Launch"},{"Police Car (LSPD)"},{"Police Car (SFPD)"},
- {"Police Car (LVPD)"},{"Police Ranger"},{"Picador"},{"S.W.A.T. Van"},{"Alpha"},{"Phoenix"},{"Glendale"},
- {"Sadler"},{"Luggage Trailer A"},{"Luggage Trailer B"},{"Stair Trailer"},{"Boxville"},{"Farm Plow"},
- {"Utility Trailer"}
- };
- #endif
- #if !defined _ALS_
- forward public _ALS_();
- _ALS_()<_ALS_:unhooked>{}
- _ALS_()<_ALS_:hooked>{}
- _ALS_()<>{}
- #endif
- public OnGameModeInit()
- {
- state _ALS_:hooked;
- data = db_open("gps.db");
- db_query(data,"CREATE TABLE IF NOT EXISTS gps (`id` int(11), `Name` varchar(30), `X` float, `Y` float, `Z` float)");
- LoadGPS();
- print("\n=================================");
- print(" Dynamisches GPS System by Slash");
- print("=================================\n");
- return GPS_OnGameModeInit();
- }
- forward GPS_OnGameModeInit();
- #if defined _ALS_OnGameModeInit
- #undef OnGameModeInit
- #else
- #define _ALS_OnGameModeInit
- #endif
- public GPS_OnGameModeInit() <_ALS_:unhooked> return 1;
- public GPS_OnGameModeInit() <> return 1;
- #define OnGameModeInit(%0) GPS_OnGameModeInit(%0)<_ALS_:hooked>
- public OnGameModeExit()
- {
- state _ALS_:hooked;
- db_close(data);
- return GPSOnGameModeExit();
- }
- forward GPSOnGameModeExit();
- #if defined _ALS_OnGameModeExit
- #undef OnGameModeExit
- #else
- #define _ALS_OnGameModeExit
- #endif
- public GPSOnGameModeExit() <_ALS_:unhooked> return 1;
- public GPSOnGameModeExit() <> return 1;
- #define OnGameModeExit(%0) GPSOnGameModeExit(%0)<_ALS_:hooked>
- public OnPlayerConnect(playerid)
- {
- state _ALS_:hooked;
- CreatePlayerText(playerid);
- return GPS_OnPlayerConnect(playerid);
- }
- forward GPS_OnPlayerConnect(playerid);
- #if defined _ALS_OnPlayerConnect
- #undef OnPlayerConnect
- #else
- #define _ALS_OnPlayerConnect
- #endif
- public GPS_OnPlayerConnect() <_ALS_:unhooked> return 1;
- public GPS_OnPlayerConnect() <> return 1;
- #define OnPlayerConnect(%0) GPS_OnPlayerConnect(%0)<_ALS_:hooked>
- ocmd:gpscfg(playerid,params[])
- {
- #pragma unused params
- if(!IsPlayerAdmin(playerid))return 1;
- return ShowPlayerDialog(playerid,DIALOG_CREATE,DIALOG_STYLE_LIST,"GPS Verwaltung","Neuen Wegpunkt hinzufügen\nWegpunkte bearbeiten","Weiter","Abbrechen"),dialog[playerid]=1;
- }
- ocmd:gps(playerid,params[])
- {
- #pragma unused params
- new string[1024],i=0;
- format(string,1024,"GPS Ausschalten\n");
- for(;i<MAX_GPS;i++)
- {
- if(gps[i][erstellt]==true)
- {format(string,1024,"%s%s\n",string,gps[i][Name]);}
- }
- return ShowPlayerDialog(playerid,DIALOG_GPS,DIALOG_STYLE_LIST,"GPS",string,"Weiter","Abbrechen"),dialog[playerid]=1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- state _ALS_:hooked;
- if(NavActive[playerid])
- {
- DisablePlayerCheckpoint(playerid);
- NavActive[playerid]=-1;
- NavActiveID[playerid]=-1;
- SendClientMessage(playerid,-1,"Ziel Erreicht, GPS wird ausgeschalten..");
- #if defined GPSTacho
- for(new i;i<11;i++)
- {
- PlayerTextDrawHide(playerid,GPSText[playerid][i]);
- }
- #endif
- }
- return GPS_OnPlayerEnterCheckpoint(playerid);
- }
- forward GPS_OnPlayerEnterCheckpoint(playerid);
- #if defined _ALS_OnPlayerEnterCheckpoint
- #undef OnPlayerEnterCheckpoint
- #else
- #define _ALS_OnPlayerEnterCheckpoint
- #endif
- public GPS_OnPlayerEnterCheckpoint() <_ALS_:unhooked> return 1;
- public GPS_OnPlayerEnterCheckpoint() <> return 1;
- #define OnPlayerEnterCheckpoint(%0) GPS_OnPlayerEnterCheckpoint(%0)<_ALS_:hooked>
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- state _ALS_:hooked;
- #if defined GPSTacho
- SetVehicleNameToTacho(playerid);
- #endif
- return GPS_OnPlayerStateChange(playerid,newstate,oldstate);
- }
- forward GPS_OnPlayerStateChange(playerid,newstate,oldstate);
- #if defined _ALS_OnPlayerStateChange
- #undef OnPlayerStateChange
- #else
- #define _ALS_OnPlayerStateChange
- #endif
- public GPS_OnPlayerStateChange(playerid,newstate,oldstate) <_ALS_:unhooked> return 1;
- public GPS_OnPlayerStateChange(playerid,newstate,oldstate) <> return 1;
- #define OnPlayerStateChange(%0,%1,%2) GPS_OnPlayerStateChange(%0,%1,%2)<_ALS_:hooked>
- public OnPlayerUpdate(playerid)
- {
- state _ALS_:hooked;
- #if defined GPSTacho
- if(NavActive[playerid])
- {
- new string[20],Float:health;
- if(IsPlayerInAnyVehicle(playerid))
- {
- format(string,20,"%d KM/h",GetVehicleSpeed(GetPlayerVehicleID(playerid)));
- PlayerTextDrawSetString(playerid,GPSText[playerid][5],string);
- GetVehicleHealth(GetPlayerVehicleID(playerid),health);
- format(string,20,"%d %",floatround(health)/10);
- PlayerTextDrawSetString(playerid,GPSText[playerid][10],string);
- format(string,20,"%0.0f Meter",GetPlayerDistanceFromPoint(playerid,gps[NavActiveID[playerid]][GPSX],gps[NavActiveID[playerid]][GPSY],gps[NavActiveID[playerid]][GPSZ]));
- PlayerTextDrawSetString(playerid,GPSText[playerid][7],string);
- }
- format(string,20,"%0.0f Meter",GetPlayerDistanceFromPoint(playerid,gps[NavActiveID[playerid]][GPSX],gps[NavActiveID[playerid]][GPSY],gps[NavActiveID[playerid]][GPSZ]));
- PlayerTextDrawSetString(playerid,GPSText[playerid][7],string);
- }
- #endif
- return GPS_OnPlayerUpdate(playerid);
- }
- forward GPS_OnPlayerUpdate(playerid);
- #if defined _ALS_OnPlayerUpdate
- #undef OnPlayerUpdate
- #else
- #define _ALS_OnPlayerUpdate
- #endif
- public GPS_OnPlayerUpdate(playerid) <_ALS_:unhooked> return 1;
- public GPS_OnPlayerUpdate(playerid) <> return 1;
- #define OnPlayerUpdate(%0) GPS_OnPlayerUpdate(%0)<_ALS_:hooked>
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- state _ALS_:hooked;
- switch(dialogid)
- {
- case DIALOG_CREATE:
- {
- if(response)
- {
- switch(dialog[playerid])
- {
- case 1:
- {
- switch(listitem)
- {
- case 0:return ShowPlayerDialog(playerid,DIALOG_CREATE,DIALOG_STYLE_INPUT,"GPS Verwaltung","Gebe nun den Namen des neuen GPS - Wegpunktes an","Weiter","Abbrechen"),dialog[playerid]=2;
- case 1:
- {
- new string[1024],i=0;
- for(;i<MAX_GPS;i++)
- {
- if(gps[i][erstellt]==true)
- {format(string,1024,"%s%s\n",string,gps[i][Name]);}
- }
- return ShowPlayerDialog(playerid,DIALOG_CREATE,DIALOG_STYLE_LIST,"GPS Verwaltung",string,"Auswählen","Abbrechen"),dialog[playerid]=5;
- }
- }
- }
- case 2:
- {
- new string[128];
- format(GPSName[playerid],30,"%s",inputtext);
- format(string,128,"{FFFFFF}Möchtest du den neuen Wegpunkt {0068C2}%s {FFFFFF}im GPS eintragen?",inputtext);
- return ShowPlayerDialog(playerid,DIALOG_CREATE,DIALOG_STYLE_MSGBOX,"GPS Verwaltung",string,"Weiter","Abbrechen"),dialog[playerid]=3;
- }
- case 3:return CreateGPS(playerid,GPSName[playerid]);
- case 4:return dialog[playerid]=0;
- case 5:
- {
- select[playerid] = listitem;
- new string[128];
- format(string,128,"Wegpunkt - %s editieren",gps[select[playerid]][Name]);
- return ShowPlayerDialog(playerid,DIALOG_CREATE,DIALOG_STYLE_LIST,string,"Namen ändern\nPosition ändern\nLöschen","Weiter","Abbrechen"),dialog[playerid]=6;
- }
- case 6:
- {
- switch(listitem)
- {
- case 0:
- {
- new string[128];
- format(string,128,"{FFFFFF}Gebe nun den neuen Namen für den Wegpunkt {0068C2}%s {FFFFFF}an",gps[select[playerid]][Name]);
- return ShowPlayerDialog(playerid,DIALOG_CREATE,DIALOG_STYLE_INPUT,"GPS Verwaltung",string,"Weiter","Abbrechen"),dialog[playerid]=7;
- }
- case 1:
- {
- new string[128];
- format(string,128,"{FFFFFF}Stelle sicher das du am neuen punkt für den Wegpunkt {0068C2}%s {FFFFFF}bist",gps[select[playerid]][Name]);
- return ShowPlayerDialog(playerid,DIALOG_CREATE,DIALOG_STYLE_MSGBOX,"GPS Verwaltung",string,"Weiter","Abbrechen"),dialog[playerid]=8;
- }
- case 2:
- {
- new string[128];
- format(string,128,"{FFFFFF}Bist du sicher das du den Wegpunkt {0068C2}%s {FFFFFF}entfernen möchtest?",gps[select[playerid]][Name]);
- return ShowPlayerDialog(playerid,DIALOG_CREATE,DIALOG_STYLE_MSGBOX,"GPS Verwaltung",string,"Weiter","Abbrechen"),dialog[playerid]=9;
- }
- }
- }
- case 7:
- {
- new string[128];
- format(string,128,"UPDATE gps SET Name='%s' WHERE id='%i'",DB_Escape(inputtext),select[playerid]);
- db_query(data,string);
- format(gps[select[playerid]][Name],30,"%s",inputtext);
- SendClientMessage(playerid,-1,"Der Name des Wegpunktes wurde erfolgreich geändert");
- }
- case 8:
- {
- new string[128],Float:Pos[3];
- GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
- format(string,128,"UPDATE gps SET X='%f',Y='%f',Z='%f' WHERE id='%i'",Pos[0],Pos[1],Pos[2],select[playerid]);
- db_query(data,string);
- LoadGPS();
- SendClientMessage(playerid,-1,"Die Position des Wegpunktes wurde erfolgreich geändert");
- }
- case 9:
- {
- new string[128];
- format(string,128,"DELETE FROM gps WHERE id='%i'",select[playerid]);
- db_query(data,string);
- gps[select[playerid]][GPSX] = 0.0;
- gps[select[playerid]][GPSY] = 0.0;
- gps[select[playerid]][GPSZ] = 0.0;
- gps[select[playerid]][GPSZ] = 0;
- gps[select[playerid]][erstellt] = false;
- SendClientMessage(playerid,-1,"Der Wegpunkt wurde erfolgreich gelöscht");
- }
- }
- }
- else return dialog[playerid]=0;
- }
- case DIALOG_GPS:
- {
- if(response)
- {
- if(listitem==0)
- {
- NavActive[playerid]=0;
- NavActiveID[playerid]=0;
- DisablePlayerCheckpoint(playerid);
- #if defined GPSTacho
- for(new i;i<11;i++)
- {
- PlayerTextDrawHide(playerid,GPSText[playerid][i]);
- }
- #endif
- return SendClientMessage(playerid,-1,"GPS Ausgeschalten");
- }
- NavActiveID[playerid] = listitem-1;
- NavActive[playerid]=1;
- SetPlayerCheckpoint(playerid,gps[NavActiveID[playerid]][GPSX],gps[NavActiveID[playerid]][GPSY],gps[NavActiveID[playerid]][GPSZ],3.0);
- #if defined GPSTacho
- for(new i;i<11;i++)
- {
- PlayerTextDrawShow(playerid,GPSText[playerid][i]);
- }
- SetVehicleNameToTacho(playerid);
- #endif
- return SendClientMessage(playerid,-1,"GPS Wegpunkt gesetzt");
- }
- }
- }
- return GPS_OnDialogResponse(playerid, dialogid, response, listitem, inputtext);
- }
- forward GPS_OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]);
- #if defined _ALS_OnDialogResponse
- #undef OnDialogResponse
- #else
- #define _ALS_OnDialogResponse
- #endif
- public GPS_OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) <_ALS_:unhooked> return 1;
- public GPS_OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) <> return 1;
- #define OnDialogResponse(%0,%1,%2,%3,%4) GPS_OnDialogResponse(%0,%1,%2,%3,%4)<_ALS_:hooked>
- stock CreateGPS(playerid,const GName[])
- {
- new Float:gPos[3],id=GetFreeGPSID(),string[128];
- GetPlayerPos(playerid,gPos[0],gPos[1],gPos[2]);
- if(id == -1)return ShowPlayerDialog(playerid,DIALOG_CREATE,DIALOG_STYLE_MSGBOX,"GPS Verwaltung","Es wurde bereits die maximale anzahl an GPS - Wegpunkten erstellt.","Weiter",""),dialog[playerid]=4;
- format(gps[id][Name],30,GName);
- gps[id][GPSX] = gPos[0];
- gps[id][GPSY] = gPos[1];
- gps[id][GPSZ] = gPos[2];
- gps[id][erstellt] = true;
- format(string,128,"INSERT INTO gps (`id`,`Name`,`X`,`Y`,`Z`) VALUES ('%i','%s','%f','%f','%f')",id,DB_Escape(GName),gPos[0],gPos[1],gPos[2]),db_query(data,string);
- return SendClientMessage(playerid,-1,"Der GPS Wegpunkt wurde erfolgreich erstellt.");
- }
- stock GetFreeGPSID()
- {
- new i=0;
- for(;i<MAX_GPS;i++)
- {
- if(gps[i][erstellt]==true)continue;
- return i;
- }
- return -1;
- }
- stock LoadGPS()
- {
- new i=0,string[128],cache[30],DBResult:result;
- for(;i<MAX_GPS;i++)
- {
- format(string,128,"SELECT * FROM gps WHERE id = '%d'",i),result = db_query(data,string);
- if(db_num_rows(result)==1)
- {
- db_get_field_assoc(result,"Name",cache,30);
- format(gps[i][Name],30,"%s",cache);
- db_get_field_assoc(result,"X",cache,30);
- gps[i][GPSX] = floatstr(cache);
- db_get_field_assoc(result,"Y",cache,30);
- gps[i][GPSY] = floatstr(cache);
- db_get_field_assoc(result,"Z",cache,30);
- gps[i][GPSZ] = floatstr(cache);
- gps[i][erstellt] = true;
- }
- else {gps[i][erstellt] = false;}
- }
- db_free_result(result);
- }
- stock DB_Escape(const text[])
- {
- #define MAX_INI_ENTRY_TEXT 80
- new ret[MAX_INI_ENTRY_TEXT * 2],ch,i,j;
- while ((ch = text[i++]) && j < sizeof (ret))
- {
- if (ch == '\'')
- {
- if (j < sizeof (ret) - 2)
- {
- ret[j++] = '\'';
- ret[j++] = '\'';
- }
- }
- else if (j < sizeof (ret))
- {
- ret[j++] = ch;
- }
- else
- {
- j++;
- }
- }
- ret[sizeof (ret) - 1] = '\0';
- return ret;
- }
- stock SetVehicleNameToTacho(playerid)
- {
- if(IsPlayerInAnyVehicle(playerid))return PlayerTextDrawSetString(playerid,GPSText[playerid][4],VehicleNames[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
- return PlayerTextDrawSetString(playerid,GPSText[playerid][4],"Zu Fuss");
- }
- stock GetVehicleSpeed(vehicleid)
- {
- new Float:xPos[3];
- GetVehicleVelocity(vehicleid, xPos[0], xPos[1], xPos[2]);
- return floatround(floatsqroot(xPos[0] * xPos[0] + xPos[1] * xPos[1] + xPos[2] * xPos[2]) * 170.00);
- }
- stock CreatePlayerText(playerid)
- {
- #if defined GPSTacho
- GPSText[playerid][0] = CreatePlayerTextDraw(playerid, 653.875000, 336.916656, "usebox");
- PlayerTextDrawLetterSize(playerid, GPSText[playerid][0], 0.000000, 14.472681);
- PlayerTextDrawTextSize(playerid, GPSText[playerid][0], 519.250000, 0.000000);
- PlayerTextDrawAlignment(playerid, GPSText[playerid][0], 1);
- PlayerTextDrawColor(playerid, GPSText[playerid][0], 0);
- PlayerTextDrawUseBox(playerid, GPSText[playerid][0], true);
- PlayerTextDrawBoxColor(playerid, GPSText[playerid][0], 102);
- PlayerTextDrawSetShadow(playerid, GPSText[playerid][0], 0);
- PlayerTextDrawSetOutline(playerid, GPSText[playerid][0], 0);
- PlayerTextDrawFont(playerid, GPSText[playerid][0], 0);
- GPSText[playerid][1] = CreatePlayerTextDraw(playerid, 534.375000, 338.333251, "GPS System");
- PlayerTextDrawLetterSize(playerid, GPSText[playerid][1], 0.365622, 1.378332);
- PlayerTextDrawAlignment(playerid, GPSText[playerid][1], 1);
- PlayerTextDrawColor(playerid, GPSText[playerid][1], -1523963137);
- PlayerTextDrawSetShadow(playerid, GPSText[playerid][1], 0);
- PlayerTextDrawSetOutline(playerid, GPSText[playerid][1], 1);
- PlayerTextDrawBackgroundColor(playerid, GPSText[playerid][1], 51);
- PlayerTextDrawFont(playerid, GPSText[playerid][1], 2);
- PlayerTextDrawSetProportional(playerid, GPSText[playerid][1], 1);
- GPSText[playerid][2] = CreatePlayerTextDraw(playerid, 524.375000, 367.499938, "Fahrzeug:");
- PlayerTextDrawLetterSize(playerid, GPSText[playerid][2], 0.285623, 1.133332);
- PlayerTextDrawTextSize(playerid, GPSText[playerid][2], -17.500000, -7.000000);
- PlayerTextDrawAlignment(playerid, GPSText[playerid][2], 1);
- PlayerTextDrawColor(playerid, GPSText[playerid][2], -1);
- PlayerTextDrawSetShadow(playerid, GPSText[playerid][2], 0);
- PlayerTextDrawSetOutline(playerid, GPSText[playerid][2], 1);
- PlayerTextDrawBackgroundColor(playerid, GPSText[playerid][2], 51);
- PlayerTextDrawFont(playerid, GPSText[playerid][2], 1);
- PlayerTextDrawSetProportional(playerid, GPSText[playerid][2], 1);
- GPSText[playerid][3] = CreatePlayerTextDraw(playerid, 526.250000, 388.499755, "Geschwindigkeit:");
- PlayerTextDrawLetterSize(playerid, GPSText[playerid][3], 0.217498, 1.174165);
- PlayerTextDrawAlignment(playerid, GPSText[playerid][3], 1);
- PlayerTextDrawColor(playerid, GPSText[playerid][3], -1);
- PlayerTextDrawSetShadow(playerid, GPSText[playerid][3], 0);
- PlayerTextDrawSetOutline(playerid, GPSText[playerid][3], 1);
- PlayerTextDrawBackgroundColor(playerid, GPSText[playerid][3], 51);
- PlayerTextDrawFont(playerid, GPSText[playerid][3], 1);
- PlayerTextDrawSetProportional(playerid, GPSText[playerid][3], 1);
- GPSText[playerid][4] = CreatePlayerTextDraw(playerid, 575.000000, 368.083221, "Berkley's RC Van");
- PlayerTextDrawLetterSize(playerid, GPSText[playerid][4], 0.213124, 1.238332);
- PlayerTextDrawAlignment(playerid, GPSText[playerid][4], 1);
- PlayerTextDrawColor(playerid, GPSText[playerid][4], -5963521);
- PlayerTextDrawSetShadow(playerid, GPSText[playerid][4], 0);
- PlayerTextDrawSetOutline(playerid, GPSText[playerid][4], 1);
- PlayerTextDrawBackgroundColor(playerid, GPSText[playerid][4], 51);
- PlayerTextDrawFont(playerid, GPSText[playerid][4], 1);
- PlayerTextDrawSetProportional(playerid, GPSText[playerid][4], 1);
- GPSText[playerid][5] = CreatePlayerTextDraw(playerid, 590.625000, 389.666503, "0 Km/h");
- PlayerTextDrawLetterSize(playerid, GPSText[playerid][5], 0.234999, 1.028331);
- PlayerTextDrawAlignment(playerid, GPSText[playerid][5], 1);
- PlayerTextDrawColor(playerid, GPSText[playerid][5], -5963521);
- PlayerTextDrawSetShadow(playerid, GPSText[playerid][5], 0);
- PlayerTextDrawSetOutline(playerid, GPSText[playerid][5], 1);
- PlayerTextDrawBackgroundColor(playerid, GPSText[playerid][5], 51);
- PlayerTextDrawFont(playerid, GPSText[playerid][5], 1);
- PlayerTextDrawSetProportional(playerid, GPSText[playerid][5], 1);
- GPSText[playerid][6] = CreatePlayerTextDraw(playerid, 526.875000, 408.333343, "Strecke:");
- PlayerTextDrawLetterSize(playerid, GPSText[playerid][6], 0.287497, 1.156664);
- PlayerTextDrawAlignment(playerid, GPSText[playerid][6], 1);
- PlayerTextDrawColor(playerid, GPSText[playerid][6], -1);
- PlayerTextDrawSetShadow(playerid, GPSText[playerid][6], 0);
- PlayerTextDrawSetOutline(playerid, GPSText[playerid][6], 1);
- PlayerTextDrawBackgroundColor(playerid, GPSText[playerid][6], 51);
- PlayerTextDrawFont(playerid, GPSText[playerid][6], 1);
- PlayerTextDrawSetProportional(playerid, GPSText[playerid][6], 1);
- GPSText[playerid][7] = CreatePlayerTextDraw(playerid, 572.500000, 407.749938, "0 Meter");
- PlayerTextDrawLetterSize(playerid, GPSText[playerid][7], 0.206248, 1.249999);
- PlayerTextDrawAlignment(playerid, GPSText[playerid][7], 1);
- PlayerTextDrawColor(playerid, GPSText[playerid][7], -5963521);
- PlayerTextDrawSetShadow(playerid, GPSText[playerid][7], 0);
- PlayerTextDrawSetOutline(playerid, GPSText[playerid][7], 1);
- PlayerTextDrawBackgroundColor(playerid, GPSText[playerid][7], 51);
- PlayerTextDrawFont(playerid, GPSText[playerid][7], 1);
- PlayerTextDrawSetProportional(playerid, GPSText[playerid][7], 1);
- GPSText[playerid][8] = CreatePlayerTextDraw(playerid, 516.875000, 366.916595, ".");
- PlayerTextDrawLetterSize(playerid, GPSText[playerid][8], 12.297508, -1.194165);
- PlayerTextDrawAlignment(playerid, GPSText[playerid][8], 1);
- PlayerTextDrawColor(playerid, GPSText[playerid][8], -1523963137);
- PlayerTextDrawSetShadow(playerid, GPSText[playerid][8], 0);
- PlayerTextDrawSetOutline(playerid, GPSText[playerid][8], 1);
- PlayerTextDrawBackgroundColor(playerid, GPSText[playerid][8], 51);
- PlayerTextDrawFont(playerid, GPSText[playerid][8], 1);
- PlayerTextDrawSetProportional(playerid, GPSText[playerid][8], 1);
- GPSText[playerid][9] = CreatePlayerTextDraw(playerid, 528.125000, 427.583282, "Zustand:");
- PlayerTextDrawLetterSize(playerid, GPSText[playerid][9], 0.272498, 1.197499);
- PlayerTextDrawAlignment(playerid, GPSText[playerid][9], 1);
- PlayerTextDrawColor(playerid, GPSText[playerid][9], -1);
- PlayerTextDrawSetShadow(playerid, GPSText[playerid][9], 0);
- PlayerTextDrawSetOutline(playerid, GPSText[playerid][9], 1);
- PlayerTextDrawBackgroundColor(playerid, GPSText[playerid][9], 51);
- PlayerTextDrawFont(playerid, GPSText[playerid][9], 1);
- PlayerTextDrawSetProportional(playerid, GPSText[playerid][9], 1);
- GPSText[playerid][10] = CreatePlayerTextDraw(playerid, 573.750000, 426.999908, "0 %");
- PlayerTextDrawLetterSize(playerid, GPSText[playerid][10], 0.220624, 1.279164);
- PlayerTextDrawAlignment(playerid, GPSText[playerid][10], 1);
- PlayerTextDrawColor(playerid, GPSText[playerid][10], -5963521);
- PlayerTextDrawSetShadow(playerid, GPSText[playerid][10], 0);
- PlayerTextDrawSetOutline(playerid, GPSText[playerid][10], 1);
- PlayerTextDrawBackgroundColor(playerid, GPSText[playerid][10], 51);
- PlayerTextDrawFont(playerid, GPSText[playerid][10], 1);
- PlayerTextDrawSetProportional(playerid, GPSText[playerid][10], 1);
- #else
- #pragma unused playerid
- #endif
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement