3 Questions Help Appreciated
#1

Hi everyone i have 3 problems that i need help fixing

1- addvehiclecomponent = it works but if a car is destroyed the components are not there on respawn
2- setplayermapicon = Doesnt show up on map at all for some reason
3-just a question when someone enters a building there icon comes up in some completely random town/city is there a way to fix that?
Examples= At end of ongamemodeinit
AddVehicleComponent(adminElegy2,1147); // elegy spoiler
AddVehicleComponent(adminElegy2,1085); // elegy rims
AddVehicleComponent(adminElegy2,114; // elegy rear bumper
AddVehicleComponent(adminElegy2,1172); // elegy front bumper
AddVehicleComponent(adminElegy2,1034); // elegy pipes
AddVehicleComponent(adminElegy2,1010); // elegy nawz
AddVehicleComponent(adminElegy2,1040); // elegy skirt
AddVehicleComponent(adminElegy2,1036); // elegy skirt
return 1;
}

Icon example=
SetPlayerMapIcon(playerid, 2, 2347.7432,1561.8536,36.9063, 52, 0); // bank
SetPlayerMapIcon(playerid, 3, 1137.7289,2088.1465,11.0625, 52, 0); // atm 1
SetPlayerMapIcon(playerid, 4, 2540.4976,2266.2742,10.8203, 52, 0); // atm 2
SetPlayerMapIcon(playerid, 5, 2192.8577,1975.1671,12.2894, 52, 0); // atm 3
SetPlayerMapIcon(playerid, 6, 2231.5820,958.6937,10.8203, 52, 0); // atm 4
return 1;
}
Reply
#2

Put the map icons under OnPlayerConnect or OnPlayerSpawn?
And about the components I have no idea, because I never tried modding cars.
Reply
#3

Thanks :P Icons Are now displaying correctly after i put them under onplayerspawn

Anyone else know about other issues?
Reply
#4

figured out mods it was easy added them under onvehiclespawn
i have a new problem though all my money is disapearing when i die
all of it
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)