Cerere Modificare PlugiN Viteza
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
-
- Fost moderator
- Posts: 9362
- Joined: 06 Jul 2013, 22:08
- Detinator Steam: Da
- Detinator server CS: Nu
- Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn - Has thanked: 492 times
- Been thanked: 547 times
Am urmatorul cod , dar nu functioneaza cum trebuie imi arata in hud ca merg cu 5.0000 s'au ceva de genu' . Rezolvarea care ar fi ?
- FaTzZu
- Fost moderator
- Posts: 1206
- Joined: 22 Dec 2012, 18:37
- Detinator Steam: Da
- Reputatie: Fost moderator ajutator
- Has thanked: 114 times
- Been thanked: 168 times
Code: Select all
%f
Code: Select all
%2.3f
A fool's brain digests philosophy into folly, science into superstition, and art into pedantry.
#RETIRED.
#RETIRED.
- Rap^
- Membru, skill +2
- Posts: 621
- Joined: 01 Oct 2011, 00:25
- Detinator Steam: Da
- Reputatie: Fost Scripter eXtreamCS
Fost Super moderator - Location: Bucuresti
- Has thanked: 16 times
- Been thanked: 156 times
Code: Select all
new vVelocity[3];
pev(id, pev_velocity, vVelocity);
set_hudmessage(255, 0, 0, 0.25, 0.67, 0, 6.0, 12.0)
show_hudmessage(id, "Viteza: %d unitati/secunda", floatround(vector_length(vVelocity), floatround_floor))
Code: Select all
set_task( 3.0,"Speed",id,_,_,"b" )
Code: Select all
set_task( 0.1,"Speed",id,_,_,"b" )
Imagination is more important than knowledge.
Knowledge is limited - Imagination encircles the world.
Knowledge is limited - Imagination encircles the world.
-
- Fost moderator
- Posts: 9362
- Joined: 06 Jul 2013, 22:08
- Detinator Steam: Da
- Detinator server CS: Nu
- Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn - Has thanked: 492 times
- Been thanked: 547 times
Functioneaza foarte bine dar imi da si o eroare la compilare: "Tag mismatch"
Apropo,imi explici si mie ce functie au fiecare,din ce ai folosit tu ?:)
Apropo,imi explici si mie ce functie au fiecare,din ce ai folosit tu ?:)
- Rap^
- Membru, skill +2
- Posts: 621
- Joined: 01 Oct 2011, 00:25
- Detinator Steam: Da
- Reputatie: Fost Scripter eXtreamCS
Fost Super moderator - Location: Bucuresti
- Has thanked: 16 times
- Been thanked: 156 times
Code: Select all
new vVelocity[3];
Code: Select all
new Float: vVelocity[3];
Code: Select all
pev(id, pev_velocity, vVelocity);
aflii cu cat se deplaseaza un jucator pe cele 3 axe X, Y, Z.
Code: Select all
vVelocity[0] = X;
vVelocity[1] = Y;
vVelocity[2] = Z; (inaltimea)
Code: Select all
floatround(vector_length(vVelocity), floatround_floor))
rotunjesti primul parametru (vector_length(vVelocity)), iar al doilea parametru reprezinta tipul de rotujire (prin adaugare, scadere)
-vector_length:
leaga cele 3 directii X, Y, Z. De exemplu: la o problema de fizica daca ai un plan inclinat si trebuie sa folosesti forta gravitationala, atunci tu o sa imparti acea forta gravitationala in alte 2 forte. Aici e acelasi lucru doar ca sunt 3, nu 2.
Imagination is more important than knowledge.
Knowledge is limited - Imagination encircles the world.
Knowledge is limited - Imagination encircles the world.
-
- Fost moderator
- Posts: 9362
- Joined: 06 Jul 2013, 22:08
- Detinator Steam: Da
- Detinator server CS: Nu
- Reputatie: Fost eXtream Mod
Fost Scripter eXtreamCS
Nume anterior: scosmynnnn - Has thanked: 492 times
- Been thanked: 547 times
Functioneaza perfect,o sa incerc sa il fac fara task deoarece cand ma opresc sta ceva timp pana ajunge la 000 unitati pentru ca la acel task pierde mereu o sutime.Multumesc frumos.
EDIT: Rap^ am incercat sa fac cu round start ca sa numai fac cu task si nu merge ;)) imi arati tu cum este corect ?:)
EDIT: Rap^ am incercat sa fac cu round start ca sa numai fac cu task si nu merge ;)) imi arati tu cum este corect ?:)
- Rap^
- Membru, skill +2
- Posts: 621
- Joined: 01 Oct 2011, 00:25
- Detinator Steam: Da
- Reputatie: Fost Scripter eXtreamCS
Fost Super moderator - Location: Bucuresti
- Has thanked: 16 times
- Been thanked: 156 times
Imagination is more important than knowledge.
Knowledge is limited - Imagination encircles the world.
Knowledge is limited - Imagination encircles the world.