Szerző Téma: Velocity...  (Megtekintve 700 alkalommal)

Nem elérhető Zharko

  • 1955
  • Future House <3
    • Profil megtekintése
Velocity...
« Dátum: 2010. Július 01. - 21:50:16 »
0 Show voters
Helló!
 
if(strcmp(cmdtext, \"/myvc\", true) == 0)
{
new myvc;
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
myvc = GetPlayerVelocity(playerid, x, y, z);
format(string, sizeof(string), \"%.5f\", myvc);
SendClientMessage(playerid, COLOR_YELLOW, string);
return 1;
}

 
Ezzel a magasságomat szeretném lekérni, de 0.00000 -t ír ki... Mindenhol

Nem elérhető DrAkE

  • 2078
    • Profil megtekintése
Velocity...
« Válasz #1 Dátum: 2010. Július 01. - 21:58:05 »
0 Show voters
sztem getplayerpossal is le lehet kérni a magasságot

Nem elérhető Zharko

  • 1955
  • Future House <3
    • Profil megtekintése
Velocity...
« Válasz #2 Dátum: 2010. Július 01. - 22:00:15 »
0 Show voters
Igazából elvileg tényleg. :D X, Y olyan mint +  (koordináta tengely) , z akkor a magasság :D Akkor m1

Velocity...
« Válasz #3 Dátum: 2010. Július 02. - 09:25:43 »
0 Show voters
a VeloCity vagy mi az elmozdulást méri asszem.
 
if(strcmp(cmdtext, \"/myvc\", true) == 0)
{
new myvc;
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
format(string, sizeof(string), \"%.5f\", z);
SendClientMessage(playerid, COLOR_YELLOW, string);
return 1;
}

 
Ez írja ki a magassságot.

Nem elérhető Zharko

  • 1955
  • Future House <3
    • Profil megtekintése
Velocity...
« Válasz #4 Dátum: 2010. Július 02. - 12:32:05 »
0 Show voters
Már rájöttem, sot el is készült a \"mu\" de azért köszi mesterek :D Zárok

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal