25.05.2018, 17:00
(
Last edited by HoussamMaroc; 27/05/2018 at 02:01 PM.
Reason: Fixed Some Bugs on the script
)
ScreenShots
PHP Code:
//================================ [Includes] ==================================
#include <a_samp> //Credits to SAMP-Team
//================================= [Script] ===================================
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"}
};
enum TimePlayed
{
hours,
mins,
secs,
TotalTime,
ConnectTime
};
new PlayerText:InfoTD[42][MAX_PLAYERS];
new PlayerTimePlayed[MAX_PLAYERS][TimePlayed];
//------------------------------------------------------------------------------
//Forwards
forward AutoPlayerUpdate(playerid);
//CallBacks & Functions
public OnFilterScriptInit()
{
print("--------------------------------");
print("| Player Stats by HoussamMaroc |");
print("| Loaded |");
print("--------------------------------");
return 1;
}
//------------------------------------------------------------------------------
public OnFilterScriptExit()
{
print("---------------------------------");
print("| Player Stats by HoussamMaroc |");
print("| Unloaded |");
print("---------------------------------");
return 1;
}
//------------------------------------------------------------------------------
public OnPlayerConnect(playerid)
{
CreatePlayerInfo(playerid);
PlayerTimePlayed[playerid][ConnectTime] = gettime();
return 1;
}
//------------------------------------------------------------------------------
public OnPlayerSpawn(playerid)
{
ShowPlayerInfo(playerid);
ShowInfoBar(playerid);
SetTimerEx("AutoPlayerUpdate", 60, true,"i", playerid);
return 1;
}
//------------------------------------------------------------------------------
public OnPlayerDisconnect(playerid, reason)
{
DestroyAllTextDraws(playerid);
DestroyPlayerInfo(playerid);
HideInfo(playerid);
return 1;
}
//------------------------------------------------------------------------------
public AutoPlayerUpdate(playerid)
{
/* ** *** Part 1 *** ** */
new PScore,ip[50],cash,ipa[50],money[50],score[50];
PScore = GetPlayerScore(playerid);
GetPlayerIp(playerid, ip, sizeof(ip));
cash = GetPlayerMoney(playerid);
format(ipa, sizeof(ipa), "Ip Adress: %s", ip);
format(money, sizeof(money), "Money: %d", cash);
format(score, sizeof(score), "Score: %d", PScore);
PlayerTextDrawSetString(playerid, InfoTD[18][playerid], ipa);
PlayerTextDrawSetString(playerid, InfoTD[19][playerid], money);
PlayerTextDrawSetString(playerid, InfoTD[20][playerid], score);
new Float:HP, HPstr[50];
GetPlayerHealth(playerid, HP);
format(HPstr, sizeof(HPstr), "Health: %.0f%%", HP);
PlayerTextDrawSetString(playerid, InfoTD[8][playerid], HPstr);
new Float:AP, APstr[50];
GetPlayerArmour(playerid, AP);
format(APstr, sizeof(APstr), "Armour: %.0f%%", AP);
PlayerTextDrawSetString(playerid, InfoTD[9][playerid], APstr);
new Weap, WeapN[50], Wstr[100];
Weap = GetPlayerWeapon(playerid);
if(Weap != 0)
{
GetWeaponName(Weap, WeapN, sizeof(WeapN));
format(Wstr, sizeof(Wstr), "Weapon: %d/%s", Weap, WeapN);
PlayerTextDrawSetString(playerid, InfoTD[10][playerid], Wstr);
}
if(Weap == 0) PlayerTextDrawSetString(playerid, InfoTD[10][playerid], "Weapon: 0/Fist");
new SKstr[50];
format(SKstr, sizeof(SKstr), "Skin: %d", GetPlayerSkin(playerid));
PlayerTextDrawSetString(playerid, InfoTD[11][playerid], SKstr);
/* ** *** Part 2 *** ** */
new Float:X, Float:Y, Float:Z, Float:An;
new Xstr[50], Ystr[50], Zstr[50], Anstr[50];
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, An);
format(Xstr, sizeof(Xstr), "Position X: %.3f", X);
format(Ystr, sizeof(Ystr), "Position Y: %.3f", Y);
format(Zstr, sizeof(Zstr), "Position Z: %.3f", Z);
format(Anstr, sizeof(Anstr), "Facing Angle: %.3f", An);
PlayerTextDrawSetString(playerid, InfoTD[13][playerid], Xstr);
PlayerTextDrawSetString(playerid, InfoTD[14][playerid], Ystr);
PlayerTextDrawSetString(playerid, InfoTD[15][playerid], Zstr);
PlayerTextDrawSetString(playerid, InfoTD[16][playerid], Anstr);
/* ** *** Part 3 *** ** */
new SAstr[50];
format(SAstr, sizeof(SAstr), "Special Action: %d", GetPlayerSpecialAction(playerid));
PlayerTextDrawSetString(playerid, InfoTD[21][playerid], SAstr);
/* ** *** Part 4 *** ** */
new Name[MAX_PLAYER_NAME], Nstr[50];
GetPlayerName(playerid, Name, sizeof(Name));
format(Nstr, sizeof(Nstr), "Name: %s", Name);
PlayerTextDrawSetString(playerid, InfoTD[23][playerid], Nstr);
new IDstr[50];
format(IDstr, sizeof(IDstr), "ID: %d", playerid);
PlayerTextDrawSetString(playerid, InfoTD[24][playerid], IDstr);
new Pstr[144],h, m, s;
TotalGameTime(playerid, h, m, s);
format(Pstr, sizeof(Pstr), "Time Played: %dh %dm %ds",h,m,s);
PlayerTextDrawSetString(playerid, InfoTD[25][playerid], Pstr);
/* ** *** Part 5 *** ** */
new Year, Month, Day, DTstr[50];
getdate(Year, Month, Day);
format(DTstr, sizeof(DTstr), "Date: %02d/%02d/%02d", Day, Month, Year);
PlayerTextDrawSetString(playerid, InfoTD[27][playerid], DTstr);
new Hour, Minute, Second, TMstr[50];
gettime(Hour, Minute, Second);
format(TMstr, sizeof(TMstr), "Time: %02d:%02d:%02d", Hour, Minute, Second);
PlayerTextDrawSetString(playerid, InfoTD[28][playerid], TMstr);
/* ** *** Part 6 *** ** */
new VWstr[50];
format(VWstr, sizeof(VWstr), "Virtual World: %d", GetPlayerVirtualWorld(playerid));
PlayerTextDrawSetString(playerid, InfoTD[30][playerid], VWstr);
new Istr[50];
format(Istr, sizeof(Istr), "Interior: %d", GetPlayerInterior(playerid));
PlayerTextDrawSetString(playerid, InfoTD[31][playerid], Istr);
/* ** *** Part 7 *** ** */
if(IsPlayerInAnyVehicle(playerid))
{
new vID, vMod, Float:vHP, vIDstr[50], vModstr[50], vHPstr[50];
vID = GetPlayerVehicleID(playerid);
vMod = GetVehicleModel(vID);
GetVehicleHealth(vID, vHP);
format(vIDstr, sizeof(vIDstr), "Vehicle Name: %s", VehicleNames[GetVehicleModel(vID)-400]);
format(vModstr, sizeof(vModstr), "Vehicle Model: %d", vMod);
format(vHPstr, sizeof(vHPstr), "Vehicle Health: %.2f", vHP);
PlayerTextDrawSetString(playerid, InfoTD[33][playerid], vIDstr);
PlayerTextDrawSetString(playerid, InfoTD[34][playerid], vModstr);
PlayerTextDrawSetString(playerid, InfoTD[35][playerid], vHPstr);
}
else
{
PlayerTextDrawSetString(playerid, InfoTD[33][playerid], "Vehicle Name: None");
PlayerTextDrawSetString(playerid, InfoTD[34][playerid], "Vehicle Model: None");
PlayerTextDrawSetString(playerid, InfoTD[35][playerid], "Vehicle Health: None");
}
return 1;
}
//================================= [Stocks] ===================================
stock ShowInfoBar(playerid)
{
PlayerTextDrawShow(playerid, InfoTD[1][playerid]);
PlayerTextDrawShow(playerid, InfoTD[2][playerid]);
return 1;
}
//------------------------------------------------------------------------------
stock HideStatsBar(playerid)
{
PlayerTextDrawHide(playerid, InfoTD[1][playerid]);
PlayerTextDrawHide(playerid, InfoTD[2][playerid]);
return 1;
}
//------------------------------------------------------------------------------
stock CreatePlayerInfo(playerid)
{
InfoTD[1][playerid] = CreatePlayerTextDraw(playerid, 310.000000, 429.000000, "Info system by HoussamMaroc");
PlayerTextDrawAlignment(playerid, InfoTD[1][playerid], 2);
PlayerTextDrawBackgroundColor(playerid, InfoTD[1][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[1][playerid], 0);
PlayerTextDrawLetterSize(playerid, InfoTD[1][playerid], 0.500000, 1.799999);
PlayerTextDrawColor(playerid, InfoTD[1][playerid], -1526726401);
PlayerTextDrawSetOutline(playerid, InfoTD[1][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[1][playerid], 1);
PlayerTextDrawUseBox(playerid, InfoTD[1][playerid], 1);
PlayerTextDrawBoxColor(playerid, InfoTD[1][playerid], 16843158);
PlayerTextDrawTextSize(playerid, InfoTD[1][playerid], 0.000000, 1050.000000);
InfoTD[2][playerid] = CreatePlayerTextDraw(playerid, 303.000000, 429.000000, "_");
PlayerTextDrawAlignment(playerid, InfoTD[2][playerid], 2);
PlayerTextDrawBackgroundColor(playerid, InfoTD[2][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[2][playerid], 0);
PlayerTextDrawLetterSize(playerid, InfoTD[2][playerid], 0.500000, -0.500000);
PlayerTextDrawColor(playerid, InfoTD[2][playerid], -939523841);
PlayerTextDrawSetOutline(playerid, InfoTD[2][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[2][playerid], 1);
PlayerTextDrawUseBox(playerid, InfoTD[2][playerid], 1);
PlayerTextDrawBoxColor(playerid, InfoTD[2][playerid], 255);
PlayerTextDrawTextSize(playerid, InfoTD[2][playerid], 0.000000, 1050.000000);
InfoTD[3][playerid] = CreatePlayerTextDraw(playerid, 637.000000, 105.000000, "_");
PlayerTextDrawAlignment(playerid, InfoTD[3][playerid], 2);
PlayerTextDrawBackgroundColor(playerid, InfoTD[3][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[3][playerid], 1);
PlayerTextDrawLetterSize(playerid, InfoTD[3][playerid], 0.500000, 35.299999);
PlayerTextDrawColor(playerid, InfoTD[3][playerid], -1);
PlayerTextDrawSetOutline(playerid, InfoTD[3][playerid], 0);
PlayerTextDrawSetProportional(playerid, InfoTD[3][playerid], 1);
PlayerTextDrawSetShadow(playerid, InfoTD[3][playerid], 1);
PlayerTextDrawUseBox(playerid, InfoTD[3][playerid], 1);
PlayerTextDrawBoxColor(playerid, InfoTD[3][playerid], 16843158);
PlayerTextDrawTextSize(playerid, InfoTD[3][playerid], 3.000000, 289.000000);
InfoTD[4][playerid] = CreatePlayerTextDraw(playerid, 1018.000000, 104.000000, "_");
PlayerTextDrawAlignment(playerid, InfoTD[4][playerid], 2);
PlayerTextDrawBackgroundColor(playerid, InfoTD[4][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[4][playerid], 0);
PlayerTextDrawLetterSize(playerid, InfoTD[4][playerid], 0.500000, -0.500000);
PlayerTextDrawColor(playerid, InfoTD[4][playerid], -939523841);
PlayerTextDrawSetOutline(playerid, InfoTD[4][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[4][playerid], 1);
PlayerTextDrawUseBox(playerid, InfoTD[4][playerid], 1);
PlayerTextDrawBoxColor(playerid, InfoTD[4][playerid], 255);
PlayerTextDrawTextSize(playerid, InfoTD[4][playerid], 0.000000, 1050.000000);
InfoTD[5][playerid] = CreatePlayerTextDraw(playerid, 490.000000, 104.000000, "_");
PlayerTextDrawAlignment(playerid, InfoTD[5][playerid], 2);
PlayerTextDrawBackgroundColor(playerid, InfoTD[5][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[5][playerid], 0);
PlayerTextDrawLetterSize(playerid, InfoTD[5][playerid], 0.500000, 35.499977);
PlayerTextDrawColor(playerid, InfoTD[5][playerid], -939523841);
PlayerTextDrawSetOutline(playerid, InfoTD[5][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[5][playerid], 1);
PlayerTextDrawUseBox(playerid, InfoTD[5][playerid], 1);
PlayerTextDrawBoxColor(playerid, InfoTD[5][playerid], 255);
PlayerTextDrawTextSize(playerid, InfoTD[5][playerid], -39.000000, -5.000000);
InfoTD[6][playerid] = CreatePlayerTextDraw(playerid, 567.000000, 104.000000, "Your Info");
PlayerTextDrawAlignment(playerid, InfoTD[6][playerid], 2);
PlayerTextDrawBackgroundColor(playerid, InfoTD[6][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[6][playerid], 2);
PlayerTextDrawLetterSize(playerid, InfoTD[6][playerid], 0.500000, 1.799999);
PlayerTextDrawColor(playerid, InfoTD[6][playerid], -1526726401);
PlayerTextDrawSetOutline(playerid, InfoTD[6][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[6][playerid], 1);
InfoTD[7][playerid] = CreatePlayerTextDraw(playerid, 1019.000000, 126.000000, "_");
PlayerTextDrawAlignment(playerid, InfoTD[7][playerid], 2);
PlayerTextDrawBackgroundColor(playerid, InfoTD[7][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[7][playerid], 0);
PlayerTextDrawLetterSize(playerid, InfoTD[7][playerid], 0.500000, -0.500000);
PlayerTextDrawColor(playerid, InfoTD[7][playerid], -939523841);
PlayerTextDrawSetOutline(playerid, InfoTD[7][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[7][playerid], 1);
PlayerTextDrawUseBox(playerid, InfoTD[7][playerid], 1);
PlayerTextDrawBoxColor(playerid, InfoTD[7][playerid], 255);
PlayerTextDrawTextSize(playerid, InfoTD[7][playerid], 0.000000, 1050.000000);
InfoTD[12][playerid] = CreatePlayerTextDraw(playerid, 1018.000000, 179.000000, "_");
PlayerTextDrawAlignment(playerid, InfoTD[12][playerid], 2);
PlayerTextDrawBackgroundColor(playerid, InfoTD[12][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[12][playerid], 0);
PlayerTextDrawLetterSize(playerid, InfoTD[12][playerid], 0.500000, -0.500000);
PlayerTextDrawColor(playerid, InfoTD[12][playerid], -939523841);
PlayerTextDrawSetOutline(playerid, InfoTD[12][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[12][playerid], 1);
PlayerTextDrawUseBox(playerid, InfoTD[12][playerid], 1);
PlayerTextDrawBoxColor(playerid, InfoTD[12][playerid], 255);
PlayerTextDrawTextSize(playerid, InfoTD[12][playerid], 0.000000, 1050.000000);
InfoTD[17][playerid] = CreatePlayerTextDraw(playerid, 1018.000000, 231.000000, "_");
PlayerTextDrawAlignment(playerid, InfoTD[17][playerid], 2);
PlayerTextDrawBackgroundColor(playerid, InfoTD[17][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[17][playerid], 0);
PlayerTextDrawLetterSize(playerid, InfoTD[17][playerid], 0.500000, -0.500000);
PlayerTextDrawColor(playerid, InfoTD[17][playerid], -939523841);
PlayerTextDrawSetOutline(playerid, InfoTD[17][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[17][playerid], 1);
PlayerTextDrawUseBox(playerid, InfoTD[17][playerid], 1);
PlayerTextDrawBoxColor(playerid, InfoTD[17][playerid], 255);
PlayerTextDrawTextSize(playerid, InfoTD[17][playerid], 0.000000, 1050.000000);
InfoTD[22][playerid] = CreatePlayerTextDraw(playerid, 1018.000000, 286.000000, "_");
PlayerTextDrawAlignment(playerid, InfoTD[22][playerid], 2);
PlayerTextDrawBackgroundColor(playerid, InfoTD[22][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[22][playerid], 0);
PlayerTextDrawLetterSize(playerid, InfoTD[22][playerid], 0.500000, -0.500000);
PlayerTextDrawColor(playerid, InfoTD[22][playerid], -939523841);
PlayerTextDrawSetOutline(playerid, InfoTD[22][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[22][playerid], 1);
PlayerTextDrawUseBox(playerid, InfoTD[22][playerid], 1);
PlayerTextDrawBoxColor(playerid, InfoTD[22][playerid], 255);
PlayerTextDrawTextSize(playerid, InfoTD[22][playerid], 0.000000, 1050.000000);
InfoTD[26][playerid] = CreatePlayerTextDraw(playerid, 1018.000000, 331.000000, "_");
PlayerTextDrawAlignment(playerid, InfoTD[26][playerid], 2);
PlayerTextDrawBackgroundColor(playerid, InfoTD[26][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[26][playerid], 0);
PlayerTextDrawLetterSize(playerid, InfoTD[26][playerid], 0.500000, -0.500000);
PlayerTextDrawColor(playerid, InfoTD[26][playerid], -939523841);
PlayerTextDrawSetOutline(playerid, InfoTD[26][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[26][playerid], 1);
PlayerTextDrawUseBox(playerid, InfoTD[26][playerid], 1);
PlayerTextDrawBoxColor(playerid, InfoTD[26][playerid], 255);
PlayerTextDrawTextSize(playerid, InfoTD[26][playerid], 0.000000, 1050.000000);
InfoTD[29][playerid] = CreatePlayerTextDraw(playerid, 1018.000000, 361.000000, "_");
PlayerTextDrawAlignment(playerid, InfoTD[29][playerid], 2);
PlayerTextDrawBackgroundColor(playerid, InfoTD[29][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[29][playerid], 0);
PlayerTextDrawLetterSize(playerid, InfoTD[29][playerid], 0.500000, -0.500000);
PlayerTextDrawColor(playerid, InfoTD[29][playerid], -939523841);
PlayerTextDrawSetOutline(playerid, InfoTD[29][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[29][playerid], 1);
PlayerTextDrawUseBox(playerid, InfoTD[29][playerid], 1);
PlayerTextDrawBoxColor(playerid, InfoTD[29][playerid], 255);
PlayerTextDrawTextSize(playerid, InfoTD[29][playerid], 0.000000, 1050.000000);
InfoTD[32][playerid] = CreatePlayerTextDraw(playerid, 1018.000000, 390.000000, "_");
PlayerTextDrawAlignment(playerid, InfoTD[32][playerid], 2);
PlayerTextDrawBackgroundColor(playerid, InfoTD[32][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[32][playerid], 0);
PlayerTextDrawLetterSize(playerid, InfoTD[32][playerid], 0.500000, -0.500000);
PlayerTextDrawColor(playerid, InfoTD[32][playerid], -939523841);
PlayerTextDrawSetOutline(playerid, InfoTD[32][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[32][playerid], 1);
PlayerTextDrawUseBox(playerid, InfoTD[32][playerid], 1);
PlayerTextDrawBoxColor(playerid, InfoTD[32][playerid], 255);
PlayerTextDrawTextSize(playerid, InfoTD[32][playerid], 0.000000, 1050.000000);
InfoTD[36][playerid] = CreatePlayerTextDraw(playerid, 489.604675, 425.250000, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, InfoTD[36][playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, InfoTD[36][playerid], 150.395309, 1.750020);
PlayerTextDrawAlignment(playerid, InfoTD[36][playerid], 1);
PlayerTextDrawColor(playerid, InfoTD[36][playerid], 255);
PlayerTextDrawSetShadow(playerid, InfoTD[36][playerid], 0);
PlayerTextDrawSetOutline(playerid, InfoTD[36][playerid], 0);
PlayerTextDrawFont(playerid, InfoTD[36][playerid], 4);
InfoTD[37][playerid] = CreatePlayerTextDraw(playerid, 490.541717, 329.000000, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, InfoTD[37][playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, InfoTD[37][playerid], 149.458282, -0.583312);
PlayerTextDrawAlignment(playerid, InfoTD[37][playerid], 1);
PlayerTextDrawColor(playerid, InfoTD[37][playerid], 255);
PlayerTextDrawSetShadow(playerid, InfoTD[37][playerid], 0);
PlayerTextDrawSetOutline(playerid, InfoTD[37][playerid], 0);
PlayerTextDrawFont(playerid, InfoTD[37][playerid], 4);
InfoTD[38][playerid] = CreatePlayerTextDraw(playerid, 491.073211, 284.500213, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, InfoTD[38][playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, InfoTD[38][playerid], 149.458282, -0.583312);
PlayerTextDrawAlignment(playerid, InfoTD[38][playerid], 1);
PlayerTextDrawColor(playerid, InfoTD[38][playerid], 255);
PlayerTextDrawSetShadow(playerid, InfoTD[38][playerid], 0);
PlayerTextDrawSetOutline(playerid, InfoTD[38][playerid], 0);
PlayerTextDrawFont(playerid, InfoTD[38][playerid], 4);
InfoTD[39][playerid] = CreatePlayerTextDraw(playerid, 490.667663, 388.166748, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, InfoTD[39][playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, InfoTD[39][playerid], 149.458282, -0.583312);
PlayerTextDrawAlignment(playerid, InfoTD[39][playerid], 1);
PlayerTextDrawColor(playerid, InfoTD[39][playerid], 255);
PlayerTextDrawSetShadow(playerid, InfoTD[39][playerid], 0);
PlayerTextDrawSetOutline(playerid, InfoTD[39][playerid], 0);
PlayerTextDrawFont(playerid, InfoTD[39][playerid], 4);
InfoTD[40][playerid] = CreatePlayerTextDraw(playerid, -0.874101, 425.083404, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, InfoTD[40][playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, InfoTD[40][playerid], 491.011016, 1.750021);
PlayerTextDrawAlignment(playerid, InfoTD[40][playerid], 1);
PlayerTextDrawColor(playerid, InfoTD[40][playerid], 255);
PlayerTextDrawSetShadow(playerid, InfoTD[40][playerid], 0);
PlayerTextDrawSetOutline(playerid, InfoTD[40][playerid], 0);
PlayerTextDrawFont(playerid, InfoTD[40][playerid], 4);
InfoTD[41][playerid] = CreatePlayerTextDraw(playerid, 489.198913, 101.916679, "LD_SPAC:white");
PlayerTextDrawLetterSize(playerid, InfoTD[41][playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, InfoTD[41][playerid], 150.395309, 1.750020);
PlayerTextDrawAlignment(playerid, InfoTD[41][playerid], 1);
PlayerTextDrawColor(playerid, InfoTD[41][playerid], 255);
PlayerTextDrawSetShadow(playerid, InfoTD[41][playerid], 0);
PlayerTextDrawSetOutline(playerid, InfoTD[41][playerid], 0);
PlayerTextDrawFont(playerid, InfoTD[41][playerid], 4);
InfoTD[8][playerid] = CreatePlayerTextDraw(playerid, 494.000000, 127.000000, "Health: 100%");
PlayerTextDrawBackgroundColor(playerid, InfoTD[8][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[8][playerid], 1);
PlayerTextDrawLetterSize(playerid, InfoTD[8][playerid], 0.280000, 1.099999);
PlayerTextDrawColor(playerid, InfoTD[8][playerid], -4652801);
PlayerTextDrawSetOutline(playerid, InfoTD[8][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[8][playerid], 1);
InfoTD[9][playerid] = CreatePlayerTextDraw(playerid, 494.000000, 138.000000, "Armour: 100%");
PlayerTextDrawBackgroundColor(playerid, InfoTD[9][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[9][playerid], 1);
PlayerTextDrawLetterSize(playerid, InfoTD[9][playerid], 0.280000, 1.099999);
PlayerTextDrawColor(playerid, InfoTD[9][playerid], -4652801);
PlayerTextDrawSetOutline(playerid, InfoTD[9][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[9][playerid], 1);
InfoTD[10][playerid] = CreatePlayerTextDraw(playerid, 494.000000, 150.000000, "Weapon: 39/Stachel Charge");
PlayerTextDrawBackgroundColor(playerid, InfoTD[10][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[10][playerid], 1);
PlayerTextDrawLetterSize(playerid, InfoTD[10][playerid], 0.280000, 1.099999);
PlayerTextDrawColor(playerid, InfoTD[10][playerid], -4652801);
PlayerTextDrawSetOutline(playerid, InfoTD[10][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[10][playerid], 1);
InfoTD[11][playerid] = CreatePlayerTextDraw(playerid, 494.000000, 162.000000, "Skin: 0");
PlayerTextDrawBackgroundColor(playerid, InfoTD[11][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[11][playerid], 1);
PlayerTextDrawLetterSize(playerid, InfoTD[11][playerid], 0.280000, 1.099999);
PlayerTextDrawColor(playerid, InfoTD[11][playerid], -4652801);
PlayerTextDrawSetOutline(playerid, InfoTD[11][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[11][playerid], 1);
InfoTD[13][playerid] = CreatePlayerTextDraw(playerid, 495.000000, 179.000000, "Position X: 00.000");
PlayerTextDrawBackgroundColor(playerid, InfoTD[13][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[13][playerid], 1);
PlayerTextDrawLetterSize(playerid, InfoTD[13][playerid], 0.280000, 1.099999);
PlayerTextDrawColor(playerid, InfoTD[13][playerid], 1270415615);
PlayerTextDrawSetOutline(playerid, InfoTD[13][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[13][playerid], 1);
InfoTD[14][playerid] = CreatePlayerTextDraw(playerid, 495.000000, 191.000000, "Position Y: 00.000");
PlayerTextDrawBackgroundColor(playerid, InfoTD[14][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[14][playerid], 1);
PlayerTextDrawLetterSize(playerid, InfoTD[14][playerid], 0.280000, 1.099999);
PlayerTextDrawColor(playerid, InfoTD[14][playerid], 1270415615);
PlayerTextDrawSetOutline(playerid, InfoTD[14][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[14][playerid], 1);
InfoTD[15][playerid] = CreatePlayerTextDraw(playerid, 495.000000, 202.000000, "Position Z: 00.000");
PlayerTextDrawBackgroundColor(playerid, InfoTD[15][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[15][playerid], 1);
PlayerTextDrawLetterSize(playerid, InfoTD[15][playerid], 0.280000, 1.099999);
PlayerTextDrawColor(playerid, InfoTD[15][playerid], 1270415615);
PlayerTextDrawSetOutline(playerid, InfoTD[15][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[15][playerid], 1);
InfoTD[16][playerid] = CreatePlayerTextDraw(playerid, 494.000000, 214.000000, "Facing Angle: 00.000");
PlayerTextDrawBackgroundColor(playerid, InfoTD[16][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[16][playerid], 1);
PlayerTextDrawLetterSize(playerid, InfoTD[16][playerid], 0.280000, 1.099999);
PlayerTextDrawColor(playerid, InfoTD[16][playerid], 1270415615);
PlayerTextDrawSetOutline(playerid, InfoTD[16][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[16][playerid], 1);
InfoTD[18][playerid] = CreatePlayerTextDraw(playerid, 493.000000, 232.000000, "Ip Adress: 127.0.0.1");
PlayerTextDrawBackgroundColor(playerid, InfoTD[18][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[18][playerid], 1);
PlayerTextDrawLetterSize(playerid, InfoTD[18][playerid], 0.280000, 1.099999);
PlayerTextDrawColor(playerid, InfoTD[18][playerid], -12189441);
PlayerTextDrawSetOutline(playerid, InfoTD[18][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[18][playerid], 1);
InfoTD[19][playerid] = CreatePlayerTextDraw(playerid, 493.000000, 244.000000, "Money: 0");
PlayerTextDrawBackgroundColor(playerid, InfoTD[19][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[19][playerid], 1);
PlayerTextDrawLetterSize(playerid, InfoTD[19][playerid], 0.280000, 1.099999);
PlayerTextDrawColor(playerid, InfoTD[19][playerid], -12189441);
PlayerTextDrawSetOutline(playerid, InfoTD[19][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[19][playerid], 1);
InfoTD[20][playerid] = CreatePlayerTextDraw(playerid, 493.000000, 256.000000, "Score: 0");
PlayerTextDrawBackgroundColor(playerid, InfoTD[20][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[20][playerid], 1);
PlayerTextDrawLetterSize(playerid, InfoTD[20][playerid], 0.280000, 1.099999);
PlayerTextDrawColor(playerid, InfoTD[20][playerid], -12189441);
PlayerTextDrawSetOutline(playerid, InfoTD[20][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[20][playerid], 1);
InfoTD[21][playerid] = CreatePlayerTextDraw(playerid, 493.000000, 268.000000, "Special Action: 0");
PlayerTextDrawBackgroundColor(playerid, InfoTD[21][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[21][playerid], 1);
PlayerTextDrawLetterSize(playerid, InfoTD[21][playerid], 0.280000, 1.099999);
PlayerTextDrawColor(playerid, InfoTD[21][playerid], -12189441);
PlayerTextDrawSetOutline(playerid, InfoTD[21][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[21][playerid], 1);
InfoTD[23][playerid] = CreatePlayerTextDraw(playerid, 494.000000, 288.000000, "Name: HoussamMaroc");
PlayerTextDrawBackgroundColor(playerid, InfoTD[23][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[23][playerid], 1);
PlayerTextDrawLetterSize(playerid, InfoTD[23][playerid], 0.280000, 1.099999);
PlayerTextDrawColor(playerid, InfoTD[23][playerid], 8912895);
PlayerTextDrawSetOutline(playerid, InfoTD[23][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[23][playerid], 1);
InfoTD[24][playerid] = CreatePlayerTextDraw(playerid, 494.000000, 300.000000, "ID: 0");
PlayerTextDrawBackgroundColor(playerid, InfoTD[24][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[24][playerid], 1);
PlayerTextDrawLetterSize(playerid, InfoTD[24][playerid], 0.280000, 1.099999);
PlayerTextDrawColor(playerid, InfoTD[24][playerid], 8912895);
PlayerTextDrawSetOutline(playerid, InfoTD[24][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[24][playerid], 1);
InfoTD[25][playerid] = CreatePlayerTextDraw(playerid, 494.000000, 313.000000, "TimePlayed: 0h 0m 0s");
PlayerTextDrawBackgroundColor(playerid, InfoTD[25][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[25][playerid], 1);
PlayerTextDrawLetterSize(playerid, InfoTD[25][playerid], 0.280000, 1.099999);
PlayerTextDrawColor(playerid, InfoTD[25][playerid], 8912895);
PlayerTextDrawSetOutline(playerid, InfoTD[25][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[25][playerid], 1);
InfoTD[27][playerid] = CreatePlayerTextDraw(playerid, 494.000000, 332.000000, "Date: 2/25/2014");
PlayerTextDrawBackgroundColor(playerid, InfoTD[27][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[27][playerid], 1);
PlayerTextDrawLetterSize(playerid, InfoTD[27][playerid], 0.280000, 1.099999);
PlayerTextDrawColor(playerid, InfoTD[27][playerid], -1442775041);
PlayerTextDrawSetOutline(playerid, InfoTD[27][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[27][playerid], 1);
InfoTD[28][playerid] = CreatePlayerTextDraw(playerid, 494.000000, 344.000000, "Time: 11:00:00");
PlayerTextDrawBackgroundColor(playerid, InfoTD[28][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[28][playerid], 1);
PlayerTextDrawLetterSize(playerid, InfoTD[28][playerid], 0.280000, 1.099999);
PlayerTextDrawColor(playerid, InfoTD[28][playerid], -1442775041);
PlayerTextDrawSetOutline(playerid, InfoTD[28][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[28][playerid], 1);
InfoTD[30][playerid] = CreatePlayerTextDraw(playerid, 494.000000, 362.000000, "Virtul World: 0");
PlayerTextDrawBackgroundColor(playerid, InfoTD[30][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[30][playerid], 1);
PlayerTextDrawLetterSize(playerid, InfoTD[30][playerid], 0.280000, 1.099999);
PlayerTextDrawColor(playerid, InfoTD[30][playerid], -16727041);
PlayerTextDrawSetOutline(playerid, InfoTD[30][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[30][playerid], 1);
InfoTD[31][playerid] = CreatePlayerTextDraw(playerid, 494.000000, 373.000000, "Interior: 0");
PlayerTextDrawBackgroundColor(playerid, InfoTD[31][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[31][playerid], 1);
PlayerTextDrawLetterSize(playerid, InfoTD[31][playerid], 0.280000, 1.099999);
PlayerTextDrawColor(playerid, InfoTD[31][playerid], -16727041);
PlayerTextDrawSetOutline(playerid, InfoTD[31][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[31][playerid], 1);
InfoTD[33][playerid] = CreatePlayerTextDraw(playerid, 494.000000, 391.000000, "Vehicle Name: 0");
PlayerTextDrawBackgroundColor(playerid, InfoTD[33][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[33][playerid], 1);
PlayerTextDrawLetterSize(playerid, InfoTD[33][playerid], 0.280000, 1.099999);
PlayerTextDrawColor(playerid, InfoTD[33][playerid], 1852731135);
PlayerTextDrawSetOutline(playerid, InfoTD[33][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[33][playerid], 1);
InfoTD[34][playerid] = CreatePlayerTextDraw(playerid, 494.000000, 402.000000, "Vehicle Model: 0");
PlayerTextDrawBackgroundColor(playerid, InfoTD[34][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[34][playerid], 1);
PlayerTextDrawLetterSize(playerid, InfoTD[34][playerid], 0.280000, 1.099999);
PlayerTextDrawColor(playerid, InfoTD[34][playerid], 1852731135);
PlayerTextDrawSetOutline(playerid, InfoTD[34][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[34][playerid], 1);
InfoTD[35][playerid] = CreatePlayerTextDraw(playerid, 494.000000, 413.000000, "Vehicle Health: 0");
PlayerTextDrawBackgroundColor(playerid, InfoTD[35][playerid], 255);
PlayerTextDrawFont(playerid, InfoTD[35][playerid], 1);
PlayerTextDrawLetterSize(playerid, InfoTD[35][playerid], 0.280000, 1.099999);
PlayerTextDrawColor(playerid, InfoTD[35][playerid], 1852731135);
PlayerTextDrawSetOutline(playerid, InfoTD[35][playerid], 1);
PlayerTextDrawSetProportional(playerid, InfoTD[35][playerid], 1);
return 1;
}
//------------------------------------------------------------------------------
stock DestroyPlayerInfo(playerid)
{
PlayerTextDrawDestroy(playerid, InfoTD[8][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[9][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[10][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[11][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[13][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[14][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[15][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[16][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[18][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[19][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[20][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[21][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[23][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[24][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[25][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[27][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[28][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[30][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[31][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[33][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[34][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[35][playerid]);
return 1;
}
//------------------------------------------------------------------------------
stock ShowPlayerInfo(playerid)
{
PlayerTextDrawShow(playerid, InfoTD[3][playerid]);
PlayerTextDrawShow(playerid, InfoTD[36][playerid]);
PlayerTextDrawShow(playerid, InfoTD[37][playerid]);
PlayerTextDrawShow(playerid, InfoTD[38][playerid]);
PlayerTextDrawShow(playerid, InfoTD[39][playerid]);
PlayerTextDrawShow(playerid, InfoTD[40][playerid]);
PlayerTextDrawShow(playerid, InfoTD[41][playerid]);
PlayerTextDrawShow(playerid, InfoTD[4][playerid]);
PlayerTextDrawShow(playerid, InfoTD[5][playerid]);
PlayerTextDrawShow(playerid, InfoTD[6][playerid]);
PlayerTextDrawShow(playerid, InfoTD[7][playerid]);
PlayerTextDrawShow(playerid, InfoTD[8][playerid]);
PlayerTextDrawShow(playerid, InfoTD[9][playerid]);
PlayerTextDrawShow(playerid, InfoTD[10][playerid]);
PlayerTextDrawShow(playerid, InfoTD[11][playerid]);
PlayerTextDrawShow(playerid, InfoTD[12][playerid]);
PlayerTextDrawShow(playerid, InfoTD[13][playerid]);
PlayerTextDrawShow(playerid, InfoTD[14][playerid]);
PlayerTextDrawShow(playerid, InfoTD[15][playerid]);
PlayerTextDrawShow(playerid, InfoTD[16][playerid]);
PlayerTextDrawShow(playerid, InfoTD[17][playerid]);
PlayerTextDrawShow(playerid, InfoTD[18][playerid]);
PlayerTextDrawShow(playerid, InfoTD[19][playerid]);
PlayerTextDrawShow(playerid, InfoTD[20][playerid]);
PlayerTextDrawShow(playerid, InfoTD[21][playerid]);
PlayerTextDrawShow(playerid, InfoTD[22][playerid]);
PlayerTextDrawShow(playerid, InfoTD[23][playerid]);
PlayerTextDrawShow(playerid, InfoTD[24][playerid]);
PlayerTextDrawShow(playerid, InfoTD[25][playerid]);
PlayerTextDrawShow(playerid, InfoTD[26][playerid]);
PlayerTextDrawShow(playerid, InfoTD[27][playerid]);
PlayerTextDrawShow(playerid, InfoTD[28][playerid]);
PlayerTextDrawShow(playerid, InfoTD[29][playerid]);
PlayerTextDrawShow(playerid, InfoTD[30][playerid]);
PlayerTextDrawShow(playerid, InfoTD[31][playerid]);
PlayerTextDrawShow(playerid, InfoTD[32][playerid]);
PlayerTextDrawShow(playerid, InfoTD[33][playerid]);
PlayerTextDrawShow(playerid, InfoTD[34][playerid]);
PlayerTextDrawShow(playerid, InfoTD[35][playerid]);
return 1;
}
//------------------------------------------------------------------------------
stock HideInfo(playerid)
{
PlayerTextDrawHide(playerid, InfoTD[3][playerid]);
PlayerTextDrawHide(playerid, InfoTD[4][playerid]);
PlayerTextDrawHide(playerid, InfoTD[5][playerid]);
PlayerTextDrawHide(playerid, InfoTD[6][playerid]);
PlayerTextDrawHide(playerid, InfoTD[7][playerid]);
PlayerTextDrawHide(playerid, InfoTD[36][playerid]);
PlayerTextDrawHide(playerid, InfoTD[37][playerid]);
PlayerTextDrawHide(playerid, InfoTD[38][playerid]);
PlayerTextDrawHide(playerid, InfoTD[39][playerid]);
PlayerTextDrawHide(playerid, InfoTD[40][playerid]);
PlayerTextDrawHide(playerid, InfoTD[41][playerid]);
PlayerTextDrawHide(playerid, InfoTD[8][playerid]);
PlayerTextDrawHide(playerid, InfoTD[9][playerid]);
PlayerTextDrawHide(playerid, InfoTD[10][playerid]);
PlayerTextDrawHide(playerid, InfoTD[11][playerid]);
PlayerTextDrawHide(playerid, InfoTD[12][playerid]);
PlayerTextDrawHide(playerid, InfoTD[13][playerid]);
PlayerTextDrawHide(playerid, InfoTD[14][playerid]);
PlayerTextDrawHide(playerid, InfoTD[15][playerid]);
PlayerTextDrawHide(playerid, InfoTD[16][playerid]);
PlayerTextDrawHide(playerid, InfoTD[17][playerid]);
PlayerTextDrawHide(playerid, InfoTD[18][playerid]);
PlayerTextDrawHide(playerid, InfoTD[19][playerid]);
PlayerTextDrawHide(playerid, InfoTD[20][playerid]);
PlayerTextDrawHide(playerid, InfoTD[21][playerid]);
PlayerTextDrawHide(playerid, InfoTD[22][playerid]);
PlayerTextDrawHide(playerid, InfoTD[23][playerid]);
PlayerTextDrawHide(playerid, InfoTD[24][playerid]);
PlayerTextDrawHide(playerid, InfoTD[25][playerid]);
PlayerTextDrawHide(playerid, InfoTD[26][playerid]);
PlayerTextDrawHide(playerid, InfoTD[27][playerid]);
PlayerTextDrawHide(playerid, InfoTD[28][playerid]);
PlayerTextDrawHide(playerid, InfoTD[29][playerid]);
PlayerTextDrawHide(playerid, InfoTD[30][playerid]);
PlayerTextDrawHide(playerid, InfoTD[31][playerid]);
PlayerTextDrawHide(playerid, InfoTD[32][playerid]);
PlayerTextDrawHide(playerid, InfoTD[33][playerid]);
PlayerTextDrawHide(playerid, InfoTD[34][playerid]);
PlayerTextDrawHide(playerid, InfoTD[35][playerid]);
return 1;
}
//------------------------------------------------------------------------------
stock DestroyAllTextDraws(playerid)
{
PlayerTextDrawDestroy(playerid, InfoTD[3][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[4][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[5][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[6][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[7][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[12][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[17][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[22][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[26][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[29][playerid]);
PlayerTextDrawDestroy(playerid, InfoTD[32][playerid]);
for(new i; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
DestroyPlayerInfo(i);
}
}
return 1;
}
//------------------------------------------------------------------------------
stock TotalGameTime(playerid, &h=0, &m=0, &s=0)
{
PlayerTimePlayed[playerid][TotalTime] = ( (gettime() - PlayerTimePlayed[playerid][ConnectTime]) + (PlayerTimePlayed[playerid][hours]*60*60) + (PlayerTimePlayed[playerid][mins]*60) + (PlayerTimePlayed[playerid][secs]) );
h = floatround(PlayerTimePlayed[playerid][TotalTime] / 3600, floatround_floor);
m = floatround(PlayerTimePlayed[playerid][TotalTime] / 60, floatround_floor) % 60;
s = floatround(PlayerTimePlayed[playerid][TotalTime] % 60, floatround_floor);
return PlayerTimePlayed[playerid][TotalTime];
}
PHP Code:
Credits:
"a_samp" //SAMP-Team
"Texdraws" //iPLEOmax
"Scripting" //HoussamMaroc
Bugs
If have found a bug please REPORT in this thread