18.09.2011, 16:16
1Є Nitro Infinito -
Crйditos: Equador, editado por Caroline.
2Є auto - reparar:
3 - Nгo possнvel(eu pelo menos nunca vн). sу em mod.
Espero ter ajudado vocк *-*
pawn Код:
#include <a_samp>
#define COLOR_ZIELONY 0xFF00FF
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(Nitro(vehicleid))
{
AddVehicleComponent(vehicleid, 1010);
}
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(IsPlayerInAnyVehicle(playerid))
{
new nos = GetPlayerVehicleID(playerid);
if(Nitro(nos) && (oldkeys & 1 || oldkeys & 4))
{
RemoveVehicleComponent(nos, 1010);
AddVehicleComponent(nos, 1010);
}
}
return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, COLOR_ZIELONY, "Server using 'Need For Speed Nitro' By Ekwador");
return 0;
}
stock Nitro(vehicleid)
{
switch(GetVehicleModel(vehicleid))
{
case
444, 581, 586, 481, 509, 446, 556, 443, 452, 453, 454, 472,
473, 484, 493, 495, 462, 463, 468, 521, 522, 417, 425, 447,
488, 497, 501, 548, 563, 406, 520, 539, 553, 557, 573, 460,
464, 476, 511, 512, 577, 592, 471, 448, 461, 523, 510, 487,
430, 465, 469, 513, 593, 419:
return false ;
}
return true ;
}
2Є auto - reparar:
pawn Код:
#include <a_samp>
public OnGameModeInit()
{
SetTimer("Reparar", 1000, true);
return 1;
}
forward Reparar(playerid);
public Reparar(playerid)
{
RepairVehicle(GetPlayerVehicleID(playerid));
return 1;
}
Espero ter ajudado vocк *-*