Fury Posted April 11, 2012 Share Posted April 11, 2012 addEventHandler("onPlayerPickupUse",getRootElement(), function ananza() if ( not wasEventCancelled() ) then setTimer ( cancelEvent(), 1000, 1 ) outputChatBox ( "#c0c0c0* Repair pickups #abcdefdisabled#c0c0c0!", getRootElement(), 255, 0, 0, true ) end) addEventHandler("onMapStarting", getRootElement(), ananza) is that code is right? ps: its for race mode. Link to comment
Castillo Posted April 11, 2012 Share Posted April 11, 2012 Race pickups aren't created by createPickup, they are normal objects with a script which rotates them. Link to comment
Guest Guest4401 Posted April 11, 2012 Share Posted April 11, 2012 onPlayerPickUpRacePickupParameters int/string pickupID, string pickupType, int vehicleModel pickupID: the number of the pickup in case of MTA:Race syntax (starting at 1), or the "id" attribute of the pickup in case of DM syntax. pickupType: the pickup type. Can be "nitro", "repair" or "vehiclechange". vehicleModel: if the pickup is of type vehiclechange, this is the vehicle model that it sets. Source The source is the player that picked up the pickup. You can use this, but it's from race resource, so you must also use addEvent. Link to comment
Fury Posted April 11, 2012 Author Share Posted April 11, 2012 onPlayerPickUpRacePickupParameters int/string pickupID, string pickupType, int vehicleModel pickupID: the number of the pickup in case of MTA:Race syntax (starting at 1), or the "id" attribute of the pickup in case of DM syntax. pickupType: the pickup type. Can be "nitro", "repair" or "vehiclechange". vehicleModel: if the pickup is of type vehiclechange, this is the vehicle model that it sets. Source The source is the player that picked up the pickup. You can use this, but it's from race resource, so you must also use addEvent. thanks Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now