Szóval a végtelen nitróról!
Tessék:)
Remélem muködik!
#include <a_samp>
forward Nitro(playerid);
new Timers[MAX_PLAYERS];
public OnFilterScriptInit()
{
print(\" Nitro Script.\");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/nitro\", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid))
return SendClientMessage(playerid, 0xFF4040FF, \"Nem ülsz jármuben!\");
new vid = GetPlayerVehicleID(playerid);
if(!IsVehicleSkinCompatible_TF(GetVehicleModel(vid)))
return SendClientMessage(playerid, 0xFF4040FF, \"Ebbe a jármube nem lehet nitrót szerelni!\");
AddVehicleComponent(vid, 1010);
Timers[playerid] = SetTimerEx(\"Nitro\", 20000, true, \"i\", playerid);
return SendClientMessage(playerid, 0x40FF40FF, \"Mostantól végtelen nitród van!\");
}
return 0;
}
public Nitro(playerid)
{
if(!IsPlayerConnected(playerid) || !IsPlayerInAnyVehicle(playerid))
return KillTimer(Timers[playerid]);
new vid = GetPlayerVehicleID(playerid);
if(!IsVehicleSkinCompatible_TF(GetVehicleModel(vid)))
return KillTimer(Timers[playerid]);
AddVehicleComponent(vid, 1010);
return 1;
}
IsVehicleSkinCompatible_TF(skinid)
{
switch(skinid)
{
case 445, 602, 429, 496, 401, 518, 402, 541, 438, 527, 415, 542, 589, 480, 507, 585, 419, 587, 533, 526, 466, 492, 474, 579, 545, 411, 546, 400, 517, 410, 551, 500, 516, 467, 404, 603, 600, 426, 436, 547, 489, 479, 442, 475, 405, 458, 439, 580, 409, 550, 506, 549, 420, 451, 540, 491, 421, 529, 555, 477, 422, 418, 478: return true;
}
return 0;
}
Az objektekrol meg ezt!
Használj Y-Streamert!
Eloször is szedd le !
Innen:
http://solidfiles.com/d/JS1iY Object Használata rajta van a fórumon használd a keresést!
REMÉLEM SEGÍTETTEM !!
By Pöpec