[FilterScript] [FS] Sniper Privilege
#21

I write as me conveniently. Show me in pawno where carrying over of a line, without using tabulation.
In other editors (not pawno), carrying over automatic.
Reply
#22

Nice work. Great idea!
Reply
#23

Quote:
Originally Posted by Noredine
Quote:
Originally Posted by » ραωпsтαг «
What's the AMSL ?

Code:
115.format(string,128,"~g~%s dist: ~r~%d m.~n~~b~Ping: ~r~%dms~n~~g~AMSL: ~r~%d m.~n~~b~Weapon: ~r~%s~p~(%d)",LOL(GetName(i)),floatround(GetDistanceBetweenPlayers(i,playerid)),GetPlayerPing
What's this LOL into the code ?
distance
Reply
#24

Quote:

distance

yeah, distance 100%
Reply
#25

updated, see first post.
Reply
#26

Why do you create the textdraw for each player twice?

Code:
public OnFilterScriptInit()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
____[i] = TextDrawCreate(340,355,"-");
TextDrawAlignment(____[i],0);
TextDrawBackgroundColor(____[i],0x000000ff);
TextDrawFont(____[i],2);
TextDrawLetterSize(____[i],0.3,1.100000);
TextDrawColor(____[i],0xffffffff);
TextDrawSetOutline(____[i],1);
TextDrawSetProportional(____[i],1);
TextDrawSetShadow(____[i],1);
}
}
return 1;
}
Here you create the textdraw for each player.

Code:
public OnPlayerConnect(playerid)
{
____[playerid] = TextDrawCreate(340,355,"-");
TextDrawAlignment(____[playerid],0);
TextDrawBackgroundColor(____[playerid],0x000000ff);
TextDrawFont(____[playerid],2);
TextDrawLetterSize(____[playerid],0.3,1.100000);
TextDrawColor(____[playerid],0xffffffff);
TextDrawSetOutline(____[playerid],1);
TextDrawSetProportional(____[playerid],1);
TextDrawSetShadow(____[playerid],1);
return 1;
}
And when a player connects, you create it again..?
Reply
#27

Wow, awsome.

Can you please tell me where did you get that sniper mod, or upload it?
Thanx!
Reply
#28

Quote:

And when a player connects, you create it again..?
i don't know - is OnPlayerConnect using, when FS loading?

Quote:

Can you please tell me where did you get that sniper mod, or upload it?

http://games.softpedia.com/get/Mods-...er-Rifle.shtml
Reply
#29

Quote:
Originally Posted by Wanted1900
Why do you create the textdraw for each player twice?

Code:
public OnFilterScriptInit()
{
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
____[i] = TextDrawCreate(340,355,"-");
TextDrawAlignment(____[i],0);
TextDrawBackgroundColor(____[i],0x000000ff);
TextDrawFont(____[i],2);
TextDrawLetterSize(____[i],0.3,1.100000);
TextDrawColor(____[i],0xffffffff);
TextDrawSetOutline(____[i],1);
TextDrawSetProportional(____[i],1);
TextDrawSetShadow(____[i],1);
}
}
return 1;
}
Here you create the textdraw for each player.

Code:
public OnPlayerConnect(playerid)
{
____[playerid] = TextDrawCreate(340,355,"-");
TextDrawAlignment(____[playerid],0);
TextDrawBackgroundColor(____[playerid],0x000000ff);
TextDrawFont(____[playerid],2);
TextDrawLetterSize(____[playerid],0.3,1.100000);
TextDrawColor(____[playerid],0xffffffff);
TextDrawSetOutline(____[playerid],1);
TextDrawSetProportional(____[playerid],1);
TextDrawSetShadow(____[playerid],1);
return 1;
}
And when a player connects, you create it again..?
If you reloadfs the FS OnPlayerConnect is not called, then he need to Manually create everything if there's someone online.
Reply
#30

Looks amazing, will try it
and who cares if u dont indent
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)