12.01.2015, 20:12
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
Command:
And I have got this line under onplayerkeystatechange
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;
Код:
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; }
Код:
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]); } } }