CosmynPintea Posted February 8, 2018 Report Share Posted February 8, 2018 (edited) Azi m-am gandit sa va fac un tutorial cu o comanda /fps care arata tickretul de pe servar stiu ca este o comanda banala dar ii facut pentru incepatorii! CMD:fps(playerid, params[]) { new string[128]; format(string, sizeof(string), "Tickrate: %d", GetServerTickRate()); SendClientMessage(playerid, -1, string); GetServerTickRate(); return 1; } Edited February 8, 2018 by CosmynPintea Quote Link to comment Share on other sites More sharing options...
Umbra Posted June 25, 2018 Report Share Posted June 25, 2018 ok, unde vezi tu ca iti folosesc alea 128 de caractere? ai nevoie de atatea? Quote Link to comment Share on other sites More sharing options...
CosminAK47 Posted June 25, 2018 Report Share Posted June 25, 2018 si unde e tutorial-ul? asta e doar o comanda ciordita dintr-un gm. 1 Quote YouTube : Click Discord : CosminAK47#8524 Link to comment Share on other sites More sharing options...
LucaAdv. Posted February 10, 2019 Report Share Posted February 10, 2019 Asta e tutorial ? =]]]]]], e doar o comanda luata dintr-un alt gamemode Quote GameMode Edited: gamemode Servicii Scripting: Contact: Email: [email protected] Discord: LucaAdv // LHS#9084 Link to comment Share on other sites More sharing options...
AlexxAdv Posted February 10, 2019 Report Share Posted February 10, 2019 Este /fps dar iti arata tickrate ok, daca in format ai %d si getservertickrate de ce este getservertickrate inca odata jos? Quote Link to comment Share on other sites More sharing options...
khain.dev Posted February 10, 2019 Report Share Posted February 10, 2019 Comanda aceasta nu are nici un sens man 1 Quote Link to comment Share on other sites More sharing options...
nobilzeusAdv Posted February 12, 2019 Report Share Posted February 12, 2019 e ok daca esti incepator, incearca sa iti pui codul pe un textdraw si sa il faci mai complicat, daca nu te descurci intrebi Quote Link to comment Share on other sites More sharing options...
NighTeN Posted September 1, 2019 Report Share Posted September 1, 2019 Acolo arata tick-ul sv-ului nu fps-urile tale.. lasa-te coae lasa-te Quote Link to comment Share on other sites More sharing options...
Mefistotel Posted September 1, 2019 Report Share Posted September 1, 2019 1 hour ago, NighTeN said: Acolo arata tick-ul sv-ului nu fps-urile tale.. lasa-te coae lasa-te Realizezi ca ai dat reply la un topic vechi de un an si jumatate, nu? In plus, a si specificat ca nu iti arata fps-urile tale. Deci tin sa-ti spun ca tu esti ala prost si ... "Daca taceai, filosof ramaneai". "" Azi m-am gandit sa va fac un tutorial cu o comanda /fps care arata tickretul de pe servar stiu ca este o comanda banala dar ii facut pentru incepatorii! "" Quote Link to comment Share on other sites More sharing options...
YashinTSA Posted March 12, 2021 Report Share Posted March 12, 2021 deci chiar va rog frumos sa nu mai faceti tutoriale dinastea asa ampulea.. iti dau si cateva motive 1. nu inteleg de ce ai folosit la proc de comenzi params, pentru ca nu-l folosesti undeva in comanda ta. 2. "FPS COMAND TUTORIAL" dar tu iei tickrate-ul de la server intr-un integer. 3. pt ce plm ai mai folosit inca odata functia "getservertickrate" daca ai afisat deja un mesaj cu treaba asta? Asculta la mine, ca sa iei fps-urile unui jucator in sa-mp e mai complicat, trebuie sa verifici drunk levelul si sa-l stochezi intr-o variabila care se updateaza intr-un timer de 1 secunda. Deci, inteleg ca e 2018, dar chiar si asa pe vremea aia sa-mpul era destul de avansat Quote Link to comment Share on other sites More sharing options...
YashinTSA Posted March 12, 2021 Report Share Posted March 12, 2021 new drunk_level[MAX_PLAYERS]; new fps_var[MAX_PLAYERS]; #define SCM va_SendClientMessage hook OnPlayerConnect(playerid) { drunk_level[playerid] = 0; fps_var[playerid] = 0; } task fps_update[1000]() { foreach(new i : Player) { if(GetPlayerDrunkLevel(i) < 100) { SetPlayerDrunkLevel(i, 2000); } else { if(drunk_level[i] != GetPlayerDrunkLevel(i)) { new GetPlayerFPS = drunk_level[i] - GetPlayerDrunkLevel(i); if((GetPlayerFPS > 0) && (GetPlayerFPS < 200))) fps_var[i] = GetPlayerFPS; drunk_level[i] = GetPlayerDrunkLevel(i); } } } } CMD:fps(playerid) { SCM(playerid, -1, "Your FPS: %i.", fps_var[playerid]); return 1; } cu placere Quote Link to comment Share on other sites More sharing options...
khain.dev Posted March 13, 2021 Report Share Posted March 13, 2021 (edited) Acum 12 ore, YashinTSA a spus: new drunk_level[MAX_PLAYERS]; new fps_var[MAX_PLAYERS]; #define SCM va_SendClientMessage hook OnPlayerConnect(playerid) { drunk_level[playerid] = 0; fps_var[playerid] = 0; } task fps_update[1000]() { foreach(new i : Player) { if(GetPlayerDrunkLevel(i) < 100) { SetPlayerDrunkLevel(i, 2000); } else { if(drunk_level[i] != GetPlayerDrunkLevel(i)) { new GetPlayerFPS = drunk_level[i] - GetPlayerDrunkLevel(i); if((GetPlayerFPS > 0) && (GetPlayerFPS < 200))) fps_var[i] = GetPlayerFPS; drunk_level[i] = GetPlayerDrunkLevel(i); } } } } CMD:fps(playerid) { SCM(playerid, -1, "Your FPS: %i.", fps_var[playerid]); return 1; } cu placere Cel mai ridicol cod pe care am avut chinul sa il vad, nu e destul ca ai niste functii care lipsesc aici, inainte de a posta un cod, gandeste bine daca are rost. Edited March 13, 2021 by khain Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.