Raised This Month: $51 Target: $400
 12% 

Spawn Sprite(s) At Location + Give it a function?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
blood2k
Senior Member
Join Date: Mar 2014
Old 03-24-2017 , 22:56   Spawn Sprite(s) At Location + Give it a function?
Reply With Quote #1

Is this an easy request? To spawn a sprite or a model somewhere and have it execute a function when stepping on it?

Currently want to set a glowing marker sprite within a store in my map that a player walks onto and it opens up a menu.. or even says a message. If somebody could help with the actual code code to create the marker at a specific coordinate with just a message when a player walks onto it.. that should suffice I can figure the rest.


as so:





planning on making it open up Oxicroms custom shop or something and showing a message to the user

Last edited by blood2k; 03-24-2017 at 22:59.
blood2k is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-25-2017 , 04:33   Re: Spawn Sprite(s) At Location + Give it a function?
Reply With Quote #2

It's pretty easy. Create an entity at that given origin, then hook Touch and do whatever you want from there.
__________________
HamletEagle is offline
blood2k
Senior Member
Join Date: Mar 2014
Old 03-25-2017 , 13:53   Re: Spawn Sprite(s) At Location + Give it a function?
Reply With Quote #3

Damn, idk how to do that ;[
blood2k is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 03-25-2017 , 16:45   Re: Spawn Sprite(s) At Location + Give it a function?
Reply With Quote #4

you want get gta san andreas in cs 1.6 o_O...... ????
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
blood2k
Senior Member
Join Date: Mar 2014
Old 03-25-2017 , 16:48   Re: Spawn Sprite(s) At Location + Give it a function?
Reply With Quote #5

NoOo I just want to spawn sprite + hook it to a function depending on what the map is!



and then I want to place sprite markers just like that ^ that will bring up custom buy menus in my ammunation stores.

Problem is I don't know how to code.. but I do know how to copy and paste and I have not found anything like I want in order to copy and paste something lol so I come to you guys.

Last edited by blood2k; 03-25-2017 at 16:49.
blood2k is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 03-25-2017 , 17:02   Re: Spawn Sprite(s) At Location + Give it a function?
Reply With Quote #6

Quote:
Originally Posted by blood2k View Post
NoOo I just want to spawn sprite + hook it to a function depending on what the map is!



and then I want to place sprite markers just like that ^ that will bring up custom buy menus in my ammunation stores.

Problem is I don't know how to code.. but I do know how to copy and paste and I have not found anything like I want in order to copy and paste something lol so I come to you guys.
when you got the code and work fine send it to me becuase its look NICE!
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
blood2k
Senior Member
Join Date: Mar 2014
Old 03-26-2017 , 20:06   Re: Spawn Sprite(s) At Location + Give it a function?
Reply With Quote #7

if* i get the code lol
blood2k is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode