14.01.2015, 17:35
pawn Код:
public OnPlayerSpawn(playerid)
{
new string[128];
format(string,sizeof(string),"~b~Score: ~y~%d ~b~Ping: ~y~%d ~b~FPS: ~y~%d ~b~Players: ~y~%d ~b~Skin: ~y~%d",GetPlayerScore(playerid),GetPlayerPing(playerid),GetPlayerFPS(playerid),GetOnLinePlayers(),GetPlayerSkin(playerid));
TextDrawSetString(TextdrawInfo[playerid], string);
TextDrawShowForPlayer(playerid, TextdrawInfo[playerid]);
SetTimer("TexdrawInfo", 1000, 1);
return 1;
}
And don't forget to show code in Textdraw Info. Try to set timer to 2 seconds (2000) because will be a little bit lagg with 1000.