25.06.2012, 06:44
Try this:
pawn Код:
public OnGameModeExit()
{
for(i=0;i<MAX_PLAYERS;i++)
{
SaveVehicleKeys(i);
}
for(v=1;v<MAX_PLAYERS;v++)
{
if(VehicleEnum[v][veh_owned])
{
SaveVehicle(v);
ResetEnumVar(v);
DestroyVehicle(v);
}
}
DestroyPickup(DealershipPickup);
DestroyPickup(ScrapPickup);
DestroyPickup(NeonPickup);
Delete3DTextLabel(DealershipLabel);
Delete3DTextLabel(ScrapLabel);
Delete3DTextLabel(NeonLabel);
djson_GameModeExit();
Delete3DTextLabel(CasinoNameDynamic3DText);
Delete3DTextLabel(CasinoEnterDynamic3DText);
Elevator_Destroy();
Audio_DestroyTCPServer();
for(i= 0;i<130;i++)
{
TextDrawHideForAll(Mod_Shop_Color_Menu[i]);
TextDrawDestroy(Mod_Shop_Color_Menu[i]);
}
TextDrawHideForAll(LoginTextdraws[0]);
TextDrawDestroy(LoginTextdraws[0]);
TextDrawHideForAll(LoginTextdraws[1]);
TextDrawDestroy(LoginTextdraws[1]);
return 1;
}