Sziasztok az lenne a kérdésem hogy..
ezt a speed boostot hogy tom megcsinni hogy egybõl aktiv legyen ne kelljen beirni
// Matite Vertikális Sebesség növelõ Scriptje. Aprobb magyarosítások:Redergy-Negro9
#include <a_samp>
#define COLOR_YELLOW 0xFFDD00AA
new Float:SpeedBoostMultiplier[MAX_PLAYERS];
public OnFilterScriptInit()
{
print(\"\\n------------------------\");
print(\"-Bekapcsoltad a Scriptet.-\");
print(\"------------------------\\n\");
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i) && !IsPlayerNPC(i))
{
SpeedBoostMultiplier = 1.5;
}
}
return 1;
}
public OnFilterScriptExit()
{
print(\"\\n------------------------\");
print(\"-Kikapcsoltad a Scriptet.-\");
print(\"------------------------\\n\");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
new idx;
cmd = strtok(cmdtext, idx);
if (strcmp(\"/speed\", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,COLOR_YELLOW,\"Bekapcsoltad a Vertikális Sebességnõvelöt.\");
SpeedBoostMultiplier[playerid] = 1.5;
return 1;
}
if (strcmp(\"/speedki\", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,COLOR_YELLOW,\"Kikapcsoltad a Vertikális Sebességnõvelöt.\");
SpeedBoostMultiplier[playerid] = 0.1;
return 1;
}
return 0;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if (newkeys & KEY_FIRE)
{
new Float:vx, Float:vy, Float:vz;
GetVehicleVelocity(GetPlayerVehicleID(playerid), vx, vy, vz);
if (floatabs(vx) < 3 && floatabs(vy) < 3 && floatabs(vz) < 3)
{
SetVehicleVelocity(GetPlayerVehicleID(playerid), vx * SpeedBoostMultiplier[playerid], vy * SpeedBoostMultiplier[playerid], vz * SpeedBoostMultiplier[playerid]);
}
return 1;
}
}
return 1;
}
stock strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= \' \'))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > \' \') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
Elõre is kössz :thumbsup: