Bank Money - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Bank Money (
/showthread.php?tid=363940)
Bank Money -
McCurdy - 29.07.2012
Hey all, i'm using Raven's Roleplay and i want ask something (look this pict):
How to hide that bank money (blue money)? So, that blue money not show again...
I have been search in script but i confused and can't get that...
Re: Bank Money -
djcabo - 29.07.2012
press F7
Re: Bank Money -
Akira297 - 29.07.2012
It will be inside the game-mode. I personally haven't seen any Raven Roleplay 0.3e script yet. If you send me a copy of the .pwn I will try to find it, or link me to the game-mode release.
Re: Bank Money -
McCurdy - 29.07.2012
Use this, same like mine ( i can't upload my pwn because really slow internet in here )
Re: Bank Money -
Akira297 - 29.07.2012
Код:
{
format(string, sizeof(string),"~p~- ~h~%s (ID: %d) ~p~-~n~~n~~n~ ~b~Health: ~w~%.1f ~g~:-: ~b~Armour: ~w~%.1f ~n~ ~b~Money: ~w~$%d ~g~:-: ~b~Bank: ~w~$%d",name,targetid,health,armour,money,bankmoney);
TextDrawSetString(Textdraw54[i],string);
}
Код:
Textdraw51[playerid] = TextDrawCreate(608.000000, 98.000000, " "); // bank money
TextDrawAlignment(Textdraw51[playerid], 3);
TextDrawBackgroundColor(Textdraw51[playerid], 255);
TextDrawFont(Textdraw51[playerid], 3);
TextDrawLetterSize(Textdraw51[playerid], 0.650000, 2.199999);
TextDrawColor(Textdraw51[playerid], 43775);
TextDrawSetOutline(Textdraw51[playerid], 1);
TextDrawSetProportional(Textdraw51[playerid], 1);
There is the codes for the following things you're discussing about I recommend removing on the first code,
remove the Bank
meaning:
Код:
public Spectator()
{
new string[350];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(Spectate[i] != 255)
{
new targetid = Spectate[i];
if(IsPlayerConnected(targetid))
{
if(PlayerInfo[i][pAdmin] >= 1)
{
new Float:health,Float:armour,Float:health2;
new name[MAX_PLAYER_NAME];
new money = GetPlayerMoney(targetid);
new carid = GetPlayerVehicleID(targetid);
new kmh = GetPlayerSpeed(targetid, true);
GetPlayerName(targetid, name, sizeof(name));
GetPlayerHealth(targetid, health);
GetPlayerArmour(targetid, armour);
GetVehicleHealth(carid, health2);
if(!IsPlayerInAnyVehicle(targetid))
{
format(string, sizeof(string),"~p~- ~h~%s (ID: %d) ~p~-~n~~n~~n~ ~b~Health: ~w~%.1f ~g~:-: ~b~Armour: ~w~%.1f ~n~ ~b~Money: ~w~$%d",name,targetid,health,armour,money,);
TextDrawSetString(Textdraw54[i],string);
}
else
{
format(string, sizeof(string),"~p~- ~h~%s (ID: %d) ~p~-~n~~n~~n~ ~b~Health: ~w~%.1f ~g~:-: ~b~Armour: ~w~%.1f ~n~ ~b~Money: ~w~$%d ~n~~n~~g~---------------------------------------------------~n~~n~ ~b~Vehicle ID: ~w~%d ~b~Vehicle HP: ~w~%.1f ~n~~n~~b~Speed: ~w~%d",name,targetid,health,armour,money,carid,health2,kmh);
TextDrawSetString(Textdraw54[i],string);
}
}
if(GetPlayerInterior(targetid) > 0)
{
SafeSetPlayerInterior(i,GetPlayerInterior(targetid));
}
if(GetPlayerVirtualWorld(targetid) > 0)
{
SetPlayerVirtualWorld(i,GetPlayerVirtualWorld(targetid));
}
}//Targetid connected
}
}
}
}
The first code given was on line : 3826
The second code given was on line : 5603
Re: Bank Money -
McCurdy - 29.07.2012
Thank's to Akira297, problem fixed...