21.06.2014, 21:59
pawn Код:
new bool:MostrandoFPSPing[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
MostrandoFPSPing[playerid] = false;
return 1;}
public UpdateTxDStatus(playerid)
{
new string[64],string2[64];
if(Arena[playerid] == 1 || MostrandoFPSPing[playerid] == true) {
format(string2,sizeof(string2),"~l~Ping: ~l~%i~n~~y~FPS: ~l~%i",GetPlayerPing(playerid),GetPlayerFPS(playerid));
TextDrawSetString(Status[playerid],string2);
}
else {
format(string,sizeof(string),"~l~Score: ~l~%i~n~~y~Spree: ~l~%i",GetPlayerScore(playerid),Spree[playerid]);
TextDrawSetString(Status[playerid],string); }
return 1;
}