Boost level
#1

Hello
I don't know whats the problem?
If I type /blevel 2 it blows me away like feather in thunder. WHY
But I have got this line under onplayerconnect setted to 2
Код:
PlayerInfo[playerid][Boostlevel] = 2;
Command:
Код:
CMD:blevel(playerid,params[])
{
#pragma unused params
new level;
if(sscanf(params, "u", level)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /blevel [0.0-10.0]");
PlayerInfo[playerid][Boostlevel] = params[0];
return 1;
}
And I have got this line under onplayerkeystatechange
Код:
if(newkeys & KEY_SUBMISSION)
{
if(PlayerInfo[playerid][Boost] == 1)
{
new Float:vx,Float:vy,Float:vz;
GetVehicleVelocity(GetPlayerVehicleID(playerid),vx,vy,vz);
SetVehicleVelocity(GetPlayerVehicleID(playerid), vx * PlayerInfo[playerid][Boostlevel], vy *PlayerInfo[playerid][Boostlevel], vz * PlayerInfo[playerid][Boostlevel]);
}
}
}
Reply


Messages In This Thread
Boost level - by kalanerik99 - 12.01.2015, 20:12
Re: Boost level - by RedFusion - 12.01.2015, 20:14
Re: Boost level - by Divergent - 12.01.2015, 20:23
Re: Boost level - by kalanerik99 - 13.01.2015, 12:09
Re: Boost level - by Threshold - 13.01.2015, 12:29
Re: Boost level - by kalanerik99 - 13.01.2015, 14:07
Re: Boost level - by kalanerik99 - 13.01.2015, 14:19
Re: Boost level - by Threshold - 13.01.2015, 15:56
Re: Boost level - by kalanerik99 - 13.01.2015, 15:59
Re: Boost level - by Threshold - 13.01.2015, 16:00

Forum Jump:


Users browsing this thread: 1 Guest(s)