How to create a pickup that can be picked-up on-foot and in-vehicle - Printable Version +- ElitesHost Forums (https://forum.eliteshost.com) +-- Forum: Community (https://forum.eliteshost.com/forumdisplay.php?fid=5) +--- Forum: Information & Guidelines (https://forum.eliteshost.com/forumdisplay.php?fid=16) +---- Forum: Tutorials (https://forum.eliteshost.com/forumdisplay.php?fid=17) +---- Thread: How to create a pickup that can be picked-up on-foot and in-vehicle (/showthread.php?tid=190) |
How to create a pickup that can be picked-up on-foot and in-vehicle - alimaroco - 04-13-2017 his allows pickups to be picked up on foot and in vehicle. This is not much of a tutorial. Requirements
First we make a limit for pickups, since we're gonna use 2 pickups per 1 pickup in this tutorial, we're gonna cut the limit in half Code: Quote:#define MAX_PICKUPS_EX (MAX_PICKUPS / 2) // which is 2048, Limit has been cut in half Secondly, create the enum data structure for the ID storing g_P_ID repesents the real pickup model that can only be picked up on - foot, and g_P_Invisible_ID represents the invisible model that can only be picked up in vehicle Code: Quote:enum e_Pickups Thirdly we create the variables for the iterator and to manipulate the enum Code: Quote:new gPickupData[MAX_PICKUPS_EX][e_Pickups], Fourthly we make the pickup creation function This function creates the model and an invisible pickup (19300) SA-MP 0.3c+ (Is it?) Code: Quote:stock CreateStaticPickup(model, Float:x, Float:y, Float:z, virtualworld = 0) Fifthly we create a way to SAFELY destroy the pickups Code: Quote:stock DestroyStaticPickup(id, &next) Lastly, we need someway to detect if either ONE of the pickups were entered, right? Don't worry we only need this ONCE, because your not gonna enter the pickup while your in both states, the callback only gets called in either state Code: Quote:public OnPlayerPickUpPickup(playerid, pickupid) The Full Code Code: Quote:#define MAX_PICKUPS_EX (MAX_PICKUPS / 2) // which is 2048, Limit has been cut in half - Enjoy Credits
vardenafil sildenafil meloxicam vardenafil bupropion baclofen stromectol si - dvicelulares - 06-11-2022 levitra ohne rezept apotheke levitra 20mg kaufen ohne rezept vardenafil kaufen schweiz sildenafil generika kaufen sildenafil schweiz rezeptfrei kaufen sildenafil rezeptfrei online meloxicam kaufen ohne rezept meloxicam kaufen rezeptfrei meloxicam kaufen schweiz levitra kaufen in holland levitra tabletten kaufen levitra 20mg kaufen ohne rezept bupropion online rezept bupropion rezeptfrei kaufen bupropion 300 mg kaufen baclofen online kaufen baclofen ohne rezept bestellen baclofen bestellen ohne rezept stromectol tabletten kaufen rezeptfrei stromectol 3mg tabletten kaufen stromectol 12mg kaufen sildenafil online kaufen österreich sildenafil bestellen zonder recept sildenafil 50 mg preis ohne rezept cytotec bestellen ohne rezept cytotec ohne rezept kaufen cytotec online kaufen ohne rezept levitra rezeptfrei schweiz levitra kaufen preisvergleich vardenafil online kaufen propranolol 40 mg kaufen propranolol 10 mg kaufen ohne rezept propranolol creme kaufen orlistat günstig bestellen xenical orlistat 120 mg kaufen xenical rezeptfrei schweiz seroquel kaufen apotheke seroquel kaufen seroquel kaufen ohne rezept orlistat rezeptfrei xenical orlistat 120 mg kaufen orlistat online kaufen sildenafil 100mg kaufen österreich sildenafil bestellen zonder recept sildenafil kaufen preis |