24.09.2010, 14:52
Hey, im making a script which sets ur velocity to a certain amount, but the z part wont work, ive tried a lot of ways, but if i set 50 or 5 at the vz
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SECONDARY_ATTACK)
{
new vx,vy,vz;
GetPlayerVelocity(playerid,Float:vx,Float:vy,Float:vz);
SetPlayerVelocity(playerid,vx + 0.5,vy - 0.7 ,vz + 0.5);
}