Jump to content

SorinELCapo2

Member
  • Posts

    62
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by SorinELCapo2

  1. Name:SorinElCapo2 Descriere: Salut, astazi o sa va prezint functia GetPlayerFps(); o sa zic ca o sa fie folositoare pentru un gm de la zero ! [pawn] function GetPlayerFps() { foreach(Player, i) { if(GetPlayerDrunkLevel(i) < 100) SetPlayerDrunkLevel(i, 2000); else { if(pDrunkLevelLast != GetPlayerDrunkLevel(i)) { new wfps = pDrunkLevelLast - GetPlayerDrunkLevel(i); if((wfps > 0) && (wfps < 200)) FPS2 = wfps; pDrunkLevelLast = GetPlayerDrunkLevel(i); } } return FPS2-1; } return 1; } [/pawn] Ne ducem sus de tot si adaugam : new pDrunkLevelLast[MAX_PLAYERS],FPS2[MAX_PLAYERS]; Si la OnPlayerConnect adaugam: pDrunkLevelLast[playerid] = 0; Sper ca o sa va fie de folos !
×
×
  • Create New...