SetTimer("Fuck",1,1);
forward Fuck(playerid);
public Fuck(playerid)
{
new N[60];
new Str[60];
GetPlayerName(playerid,N,sizeof(N));
format(Str,sizeof(Str),"Name: %s",N);
TextDrawSetString(Textdraw0,Str);
new IP[60];
GetPlayerIp(playerid,IP,sizeof(IP));
format(Str,sizeof(Str),"IP : %s",IP);
TextDrawSetString(Textdraw1,Str);
new Float:x,Float:y,Float:z,Float:a,Float:c,Float:h,Float:ar,Float:s;
GetPlayerPos(playerid,x,y,z);
format(Str,sizeof(Str),"X: %f",x);
TextDrawSetString(Textdraw2,Str);
format(Str,sizeof(Str),"Y: %f",y);
TextDrawSetString(Textdraw3,Str);
format(Str,sizeof(Str),"Z: %f",z);
TextDrawSetString(Textdraw4,Str);
GetPlayerFacingAngle(playerid,a);
format(Str,sizeof(Str),"Angle : %f",a);
TextDrawSetString(Textdraw5,Str);
c = GetPlayerMoney(playerid);
format(Str,sizeof(Str),"Money : %d$",c);
TextDrawSetString(Textdraw6,Str);
GetPlayerHealth(playerid,h);
format(Str,sizeof(Str),"Health :%s",h);
TextDrawSetString(Textdraw7,Str);
GetPlayerArmour(playerid,ar);
format(Str,sizeof(Str),"Armour : %s",ar);
TextDrawSetString(Textdraw8,Str);
s = GetPlayerScore(playerid);
format(Str,sizeof(Str),"Score: %s",s);
TextDrawSetString(Textdraw9,Str);
}
forward Fuck(playerid);
public Fuck(playerid)
{
new N[60];
new Str[60];
GetPlayerName(playerid,N,sizeof(N));
format(Str,sizeof(Str),"Name: %s",N);
TextDrawSetString(Textdraw0,Str);
new IP[60];
GetPlayerIp(playerid,IP,sizeof(IP));
format(Str,sizeof(Str),"IP : %s",IP);
TextDrawSetString(Textdraw1,Str);
new Float:x,Float:y,Float:z,Float:a,Float:c,Float:h,Float:ar,Float:s;
GetPlayerPos(playerid,x,y,z);
format(Str,sizeof(Str),"X: %f",x);
TextDrawSetString(Textdraw2,Str);
format(Str,sizeof(Str),"Y: %f",y);
TextDrawSetString(Textdraw3,Str);
format(Str,sizeof(Str),"Z: %f",z);
TextDrawSetString(Textdraw4,Str);
GetPlayerFacingAngle(playerid,a);
format(Str,sizeof(Str),"Angle : %f",a);
TextDrawSetString(Textdraw5,Str);
c = GetPlayerMoney(playerid);
format(Str,sizeof(Str),"Money : $%d",c);
TextDrawSetString(Textdraw6,Str);
GetPlayerHealth(playerid,h);
format(Str,sizeof(Str),"Health :%f",h);
TextDrawSetString(Textdraw7,Str);
GetPlayerArmour(playerid,ar);
format(Str,sizeof(Str),"Armour : %f",ar);
TextDrawSetString(Textdraw8,Str);
s = GetPlayerScore(playerid);
format(Str,sizeof(Str),"Score: %d",s);
TextDrawSetString(Textdraw9,Str);
}
Originally Posted by WackoX
Updating / Setting a timer every 1 milisecond (so 0,001 second) is realy flooding your server, try it under OnPlayerUpdate.
|
Originally Posted by (SF)Noobanatior
should be fine i did update that after i posted make sure yours says Score :%d not %s
|
Originally Posted by www.******.com
You should remove the X, Y, Z and the Angle. Those are not needed.
You should not even update the IP and name after you have set the values on OnPlayerConnect. |