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

VIP WARN Plugin!


Post New Thread Reply   
 
Thread Tools Display Modes
Front Line
Senior Member
Join Date: Jan 2005
Old 07-09-2005 , 12:46  
Reply With Quote #11

Quote:
Originally Posted by Front Line
Quote:
So your saying when Vip gets in a certain radius of the escape point
__________________
My plugins...

Are all Here...Click Me
Front Line is offline
VanillA Ice
Senior Member
Join Date: Apr 2005
Old 07-09-2005 , 12:51  
Reply With Quote #12

........................this plugin might be harder than i thought

I cant fint nothing........
__________________
I can no longer help here......school has started... :/ goodbye everybody :'(
VanillA Ice is offline
Send a message via MSN to VanillA Ice Send a message via Yahoo to VanillA Ice
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 07-09-2005 , 15:04  
Reply With Quote #13

Store the origins in a variable.. Make a looping task ( probably 1 second intervals ), check the distance. If the VIP's distance < X, show message..
__________________
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
VanillA Ice
Senior Member
Join Date: Apr 2005
Old 07-09-2005 , 15:18  
Reply With Quote #14

v3x......


YOU ARE THE BEST!!!!


Okay just one more thing.....before i go on by now you realize 1. I am a noob and 2. I ask for help alot.....
how do i store the origins in a variable??


Like something like this?

Code:
a[100]= origing,origin

if (x <= 100)
{ show_hudmessage (VIP NEAR ESCAPE POINT)
}
Is that right...i hope :\




.....i dk...i just started a week ago.....i am reading over tutorials as we speeak....even though i have read them a thousands time
__________________
I can no longer help here......school has started... :/ goodbye everybody :'(
VanillA Ice is offline
Send a message via MSN to VanillA Ice Send a message via Yahoo to VanillA Ice
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 07-09-2005 , 15:37  
Reply With Quote #15

Code:
// For the player ( simple method ) new origin1[3] get_user_origin(id,origin) // For the VIP zone thing new origin2[3] origin[0] = 100 origin[1] = 200 origin[2] = 300
You actually could store the origins in a file like so:
Quote:
100 200 300
231 2039 232
__________________
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
VanillA Ice
Senior Member
Join Date: Apr 2005
Old 07-09-2005 , 15:56  
Reply With Quote #16

v3x............


I LOVE YOU!!!
__________________
I can no longer help here......school has started... :/ goodbye everybody :'(
VanillA Ice is offline
Send a message via MSN to VanillA Ice Send a message via Yahoo to VanillA Ice
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 07-09-2005 , 16:06  
Reply With Quote #17

Well, I thought of a better solution for the reading from the file thing..
mapname origin1 origin2 origin3
Quote:
oilrig 912 283 23
as_ wouldn't be needed.
__________________
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
VanillA Ice
Senior Member
Join Date: Apr 2005
Old 07-09-2005 , 16:16  
Reply With Quote #18

home/groups/amxmodx/tmp/phpDpAoG7.sma(5) : error 021: symbol already defined: "get_user_origin"
/home/groups/amxmodx/tmp/phpDpAoG7.sma(9) : error 010: invalid function or declaration
/home/groups/amxmodx/tmp/phpDpAoG7.sma(13) : error 010: invalid function or declaration
/home/groups/amxmodx/tmp/phpDpAoG7.sma(15) : error 055: start of function body without function header
/home/groups/amxmodx/tmp/phpDpAoG7.sma(16) : error 010: invalid function or declaration
/home/groups/amxmodx/tmp/phpDpAoG7.sma(19) : error 010: invalid function or declaration
/home/groups/amxmodx/tmp/phpDpAoG7.sma(21) : error 055: start of function body without function header
/home/groups/amxmodx/tmp/phpDpAoG7.sma(22) : error 010: invalid function or declaration
/home/groups/amxmodx/tmp/phpDpAoG7.sma(25) : error 010: invalid function or declaration
/home/groups/amxmodx/tmp/phpDpAoG7.sma(27) : error 055: start of function body without function header
/home/groups/amxmodx/tmp/phpDpAoG7.sma(2 : error 010: invalid function or declaration
/home/groups/amxmodx/tmp/phpDpAoG7.sma(32) : error 055: start of function body without function header
/home/groups/amxmodx/tmp/phpDpAoG7.sma(34) : warning 203: symbol is never used: "cl_cmd"
/home/groups/amxmodx/tmp/phpDpAoG7.sma(34) : warning 203: symbol is never used: "origin1"
/home/groups/amxmodx/tmp/phpDpAoG7.sma(34) : warning 203: symbol is never used: "origin2"
/home/groups/amxmodx/tmp/phpDpAoG7.sma(34) : error 013: no entry point (no public functions)



Code:
#include <amxmodx>
#include <engine>
#include <Cstrike>
new origin1[3] 
get_user_origin(id,origin) 


new origin2[3] 
origin[0] = 100 
origin[1] = 200 
origin[2] = 300 

if (cs_get_user_vip(id)<=origin[3])

{
cl_cmd(show_hudmessage (index, VIP AT 300 MARKER![])
}

if (cs_get_user_vip(id)<=origin[3])

{
cl_cmd(show_hudmessage (index, VIP AT 200 MARKER! GET READY![])
}

if (cs_get_user_vip(id)<=origin[0])

{
cl_cmd(show_hudmessage (index, VIP NEAR ESCAPE POINT! RETURN TO SPAWN (TERRORISTS)!!!![])

{
RETURN PLUGIN_HANDELED
{
okay you know what .....i suck....even if this is not the "detailed code"
__________________
I can no longer help here......school has started... :/ goodbye everybody :'(
VanillA Ice is offline
Send a message via MSN to VanillA Ice Send a message via Yahoo to VanillA Ice
VanillA Ice
Senior Member
Join Date: Apr 2005
Old 07-09-2005 , 16:23  
Reply With Quote #19

oooo i will try that...


where do you learn all this stuff???
__________________
I can no longer help here......school has started... :/ goodbye everybody :'(
VanillA Ice is offline
Send a message via MSN to VanillA Ice Send a message via Yahoo to VanillA Ice
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 07-09-2005 , 16:25  
Reply With Quote #20

Ahh! You need to put all of your stuff inside of a function.

Code:
public my_func(id) {     // put your crap here }
__________________
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
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 15:23.


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