08.06.2010, 15:27
Btw sorry.... i made a lil change in it before i posted it sorry...
Heres: the new one
Heres: the new one
Код:
public OnPlayerExitVehicle(playerid, tc[0]); { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER, tc[0]) { if(Attackmod[playerid] == 1) { RemoveVehicleComponent(GetPlayerVehicleID(playerid),1010); // Removes Nitro RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1087); // Removes Hydraulics RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1001); // Removes Spoiler RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1074); // Removes Mega Wheels RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1007); // Removes RSS RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1017); // Removes LSS SendClientMessage(playerid,COLOR_LIGHTRED,"Transformation Offline"); Attackmod[playerid] = 0; } return 1; } if(Tcspawned[playerid] = 1) { tc[0] = GetPlayerVehicleID(playerid); Tcspawned[playerid] = 0; SendClientMessage(playerid,red,"Tc Removed"); DestroyVehicle(tc[0]); } return 1; } }