17.02.2014, 17:22
Crie o Seu , A Propia Wiki-SA:MP Tem Esta Funзгo lб
Fonte : Wiki-SAMP
pawn Код:
new gTAXI;
public OnGameModeInit()
{
gTAXI = AddStaticVehicle(420, -2482.4937, 2242.3936, 4.6225, 179.3656, 6, 1); // Taxi
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if (newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
{
if (GetPlayerVehicleID(playerid) == gTAXI)
{
AddVehicleComponent(gTAXI, 1010); // Nitro
SendClientMessage(playerid, 0xFFFFFFAA, "Nitro added to the Taxi.");
}
}
return 1;
}