07.01.2011, 08:53
/speed = He goes 0.3 faster then normal speed
/normal = Turn the super speed of...
But the porblem is that he goes 3.0 just to north and he go 3.0 just one time when i type "/speed"
/normal = Turn the super speed of...
But the porblem is that he goes 3.0 just to north and he go 3.0 just one time when i type "/speed"
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/speed", cmdtext, true, 10) == 0)
{
new Float:x, Float:y, Float:z;
GetVehicleVelocity(GetPlayerVehicleID(playerid), x, y, z);
SetVehicleVelocity(GetPlayerVehicleID(playerid) ,x ,y+0.3 ,z);
return 1;
}
if (strcmp("/normal", cmdtext, true, 10) == 0)
{
new Float:x, Float:y, Float:z;
GetVehicleVelocity(GetPlayerVehicleID(playerid), x, y, z);
SetVehicleVelocity(GetPlayerVehicleID(playerid) ,x ,y ,z);
return 1;
}
return 0;
}