22.12.2010, 13:30
Oops, sorry, I did not pay attention to this. Whatever, your code is still not 100% correct, you try to add the component to 562, not to the player's vehicle id
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 562)
{
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); // Nitro
SendClientMessage(playerid, 0xFFFFFFAA, "Nitro Added.");
}
}
return 1;
}