Tessék nem teszteltem lehet rossz
Írj ha igen ma éppen le vagyok fáradva de ránézésre jónak tûnik
#include <a_samp>
#include <zcmd>
new boss[MAX_PLAYERS];
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\"SpeedBoost 0.3e By:[sDW]BlackJack\");
print(\"--------------------------------------\\n\");
return 1;
}
//Kikapcsolás
public OnPlayerConnect(playerid)
{
boss[playerid] = 0;
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
boss[playerid] = 0;
return 1;
}
//==============================Parancsok=========================================//
CMD:speedbe(playerid,params[])
{
if(boss[playerid] == 1)return SendClientMessage(playerid,-1,\"Már be van kapcsolva a Boost\");
boss[playerid] = 1;
SendClientMessage( playerid,-1,\"Bekapcsoltad a SpeedBoost Uccu neki XD\");
return 1;
}
CMD:speedki(playerid,params[])
{
if(boss[playerid] == 0)return SendClientMessage(playerid,-1,\"Szerintem jó lenne ha elõbb bekapcsolnád! Nem?\");
boss[playerid] = 0;
SendClientMessage( playerid,-1,\"Kikapcsolva!\");
return 1;
}
//===============================================================================================================//
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(boss[playerid] == 1)
if ((newkeys & KEY_CROUCH) && !(oldkeys & KEY_ANALOG_UP) && IsPlayerInAnyVehicle(playerid) ){
if (IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new Float:vx, Float:vy, Float:vz;
GetVehicleVelocity(GetPlayerVehicleID(playerid), vx, vy, vz);
SetVehicleVelocity(GetPlayerVehicleID(playerid) ,vx*1.5,vy*1.5 ,vz*1.5);
}
}
return 1;
}