Raised This Month: $ Target: $400
 0% 

Help needed here.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sodiumchloride91
Junior Member
Join Date: Dec 2005
Location: Malaysia
Old 01-08-2006 , 21:38   Help needed here.
Reply With Quote #1

Hi, i just created a plugin, called Pheonix. I think I posted it already.

Anyway, the help is nnot about the plugin.
I just want some explanations about some functions.

I already read the AMXMODX.doc, but still fail
to figure it out.

Here's one of function.

read_data

- Well, I looked into someone plugin and saw this function.

- He just wrote read_data(2) to get what weapon is the user using.
I think it's a plugin called weapon cloak. Now tell me, what does
the number 2 stands for?

Really glad if you can help...
__________________
Salt Rulez! Sodium Reaction!!
MSN Space --> http://spaces.msn.com/members/sodiumchloride91/
sodiumchloride91 is offline
Send a message via MSN to sodiumchloride91
sodiumchloride91
Junior Member
Join Date: Dec 2005
Location: Malaysia
Old 01-08-2006 , 21:51   Ooops..forgot about this..
Reply With Quote #2

oops, i think i left out this question.

Erm....like example, I'm creating a plugin that allow user
to save a coordinate in the map by using a command,
and another command is to teleport to the saved origin.

like this

Quote:
public cmd_svorigin(id)
{
new origin[3]

get_user_origin(id, origin, 0)
// When user use this command, it will store his current origin.
}

public cmd_teleportorigin(id, origin[3])
{
set_user_origin(id, origin)
// When user use this command, he will be teleported to the origin
// in 'cmd_svorigin'.
}
Yeah, like that. Is is correct?

Well, if it is, all I need now is how to add like sprites to make
the plugin look cool, and sounds too.

When the user teleport to his saved origin, sprite will appear for a while
at the place. Like in UWC3 mod.

Help me.
__________________
Salt Rulez! Sodium Reaction!!
MSN Space --> http://spaces.msn.com/members/sodiumchloride91/
sodiumchloride91 is offline
Send a message via MSN to sodiumchloride91
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 01-08-2006 , 21:54  
Reply With Quote #3

Quote:
Originally Posted by sodiumchloride91
- He just wrote read_data(2) to get what weapon is the user using.
I think it's a plugin called weapon cloak. Now tell me, what does
the number 2 stands for?
Depends on what event he used.

List of CS events: http://ghw-amxx.biz/cs_events.html
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
sodiumchloride91
Junior Member
Join Date: Dec 2005
Location: Malaysia
Old 01-08-2006 , 22:02   Thnx
Reply With Quote #4

Thanks for the help v3x. Wow, you're really fast! I just posted this a while ago. Btw, what jeans ?

Too bad, my plugin is inside the trash.
Because i didn't test it lol.
__________________
Salt Rulez! Sodium Reaction!!
MSN Space --> http://spaces.msn.com/members/sodiumchloride91/
sodiumchloride91 is offline
Send a message via MSN to sodiumchloride91
commonbullet
Veteran Member
Join Date: Oct 2005
Old 01-08-2006 , 22:33   Re: Thnx
Reply With Quote #5

Quote:
Originally Posted by sodiumchloride91
Too bad, my plugin is inside the trash.
Because i didn't test it lol.
That wouldn't work, you've made up some events. You got use those ones in the list.
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
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 16:11.


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