|
Originally Posted by Noredine
Quote:
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 |
|
distance |
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;
}
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..? |
|
Can you please tell me where did you get that sniper mod, or upload it? |
|
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;
}
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;
}
|
