Raised This Month: $ Target: $400
 0% 

Teach me how to make a custom item [TSRP] =]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
keVn
Member
Join Date: Jun 2006
Old 06-10-2006 , 23:23  
Reply With Quote #1

Are you talking about the NPC or the announce problem I'm having?
If your talking about the NPC problem its ok for now.
Most important thing I need working is the announcement thing.
So do you have any ideas?
keVn is offline
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 06-10-2006 , 23:40  
Reply With Quote #2

no
sorry
k007 is offline
Send a message via MSN to k007
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 06-11-2006 , 11:59  
Reply With Quote #3

Quote:
Originally Posted by Peli
Try this...

Change:
Code:
client_print(0, print_chat, "[Hit] %s is going to do a Hit!", name);

To:
Code:
client_print(id, print_chat, "[Hit] %s is going to do a Hit!", name);
it's
Code:
client_print(0, print_chat, "[Hit] %s is going to do a Hit!", name);
wonsae is offline
keVn
Member
Join Date: Jun 2006
Old 06-11-2006 , 12:03  
Reply With Quote #4

Can someone please help me?
keVn is offline
Des12
Senior Member
Join Date: Jan 2005
Old 06-13-2006 , 16:02  
Reply With Quote #5

That code was meant as an example, not an actual plugin. If you want a real one, here it is:

Code:
#include <amxmodx> #include<amxmisc> public plugin_init() {    register_plugin("Hit Announcer","v1","Dest Romano");    register_srvcmd("item_hit","item_hit"); } public item_hit() {    new arg[32];    read_argv(1, arg, 31);    new id = str_to_num(arg);    new name[32];    get_user_name(id, name, 31);    client_print(0,print_chat,"[Hit] %s is going to do a Hit!",name);    return PLUGIN_HANDLED; }

In the sql, make an item, and have the command be:
item_hit <id>

And there you go.
__________________
-Dest Romano

www.JustRP.com
A TSRP Server

Quote:
Originally Posted by Brad
Don't you go be bringing reality into this.
Des12 is offline
BetaX
Member
Join Date: Nov 2005
Old 06-13-2006 , 18:43  
Reply With Quote #6

Quote:
Originally Posted by keVn
Argh its not working... :[
And also can someone show me how to make an NPC that just stands in an idle position. And how to figure out the coordinates and make it sell stuff :O
Find the coordinates by making a plugin that gets your player pos and sends it back out to the console (easy...) + trial and error.

Try looking real' real' hard at HWRP and other Econo Mods.

http://harbu.ha.funpic.org/index.php?id=mecklenburg
BetaX 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 07:56.


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