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

VIP WARN Plugin!


Post New Thread Reply   
 
Thread Tools Display Modes
VanillA Ice
Senior Member
Join Date: Apr 2005
Old 07-09-2005 , 16:30  
Reply With Quote #21

lol ok let me try that.....
so noobish
__________________
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:35  
Reply With Quote #22

/home/groups/amxmodx/tmp/phpVv6HAy.sma(16) : warning 217: loose indentation
/home/groups/amxmodx/tmp/phpVv6HAy.sma(16) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp/phpVv6HAy.sma(16) : error 017: undefined symbol "id"
/home/groups/amxmodx/tmp/phpVv6HAy.sma(16 -- eighteen) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp/phpVv6HAy.sma(16 -- eighteen) : fatal error 107: too many error messages on one line




Code:
#include <amxmodx>
#include <engine>
#include <cstrike>

#define PLUGINNAME		"VIP Escape Warning"
#define VERSION			"0.1"
#define AUTHOR			"Zenith (VanillA Ice)"
#define origin1
#define origin2
#define VIP_WARN 


public plugin_init() {
	register_plugin(PLUGINNAME, VERSION, AUTHOR)
	
public VIP_WARN(id) 

{
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[0])

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

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

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

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

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


{
RETURN PLUGIN_HANDELED
{

}

Okay what does that mean....i am not asking for more code just what to fix......

i really want to say for the first time

" I did that" ( so kiddish) plus someone the other day got mad at me for asking this question, or similar to it....
__________________
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
Platnum
Member
Join Date: May 2005
Old 07-09-2005 , 16:39  
Reply With Quote #23

public plugin_init() {
register_plugin(PLUGINNAME, VERSION, AUTHOR)


You need a closing bracket after that.
Platnum is offline
knekter
Senior Member
Join Date: Mar 2004
Location: PA
Old 07-09-2005 , 18:06   hmm
Reply With Quote #24

you can also find the entity func_vip_safetyzone and then get its origin, that would be the easiest way....
Code:
new entity = find_ent(-1, "func_vip_safteyzone") if(is_valid_ent(entity)) {     new Float:saftey_origin[3]     entity_get_vector(entity, EV_VEC_origin, saftey_origin) } /* ect.... */
__________________
More updates for Matrix Mod!
knekter is offline
Send a message via AIM to knekter Send a message via MSN to knekter
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 07-09-2005 , 18:08  
Reply With Quote #25

Oh, DUH! Haha, would've never thought of that.. ( I don't play as much at all )

safety* ;)
__________________
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 , 21:40  
Reply With Quote #26

Yes but how would i set points away from the vip zone....


I will be back tommorrow...i can not work ......ITS PARTY TIME OVER HERE!!!!!!!



WOOOTTT WOOOOT GET DOWN!!!
__________________
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 , 23:41  
Reply With Quote #27

home/groups/amxmodx/tmp/phpWnPjc9.sma(16) : warning 217: loose indentation
/home/groups/amxmodx/tmp/phpWnPjc9.sma(16) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp/phpWnPjc9.sma(16) : error 017: undefined symbol "id"
/home/groups/amxmodx/tmp/phpWnPjc9.sma(16 -- 1 : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp/phpWnPjc9.sma(16 -- 1 : fatal error 107: too many error messages on one line



Code:
#include <amxmodx>
#include <engine>
#include <cstrike>

#define PLUGINNAME		"VIP Escape Warning"
#define VERSION			"0.1"
#define AUTHOR			"Zenith (VanillA Ice)"
#define origin1
#define origin2
#define VIP_WARN 


public plugin_init() {
	register_plugin(PLUGINNAME, VERSION, AUTHOR)
	}
public VIP_WARN(id) 

{

entity = find_ent(-1, "func_vip_safteyzone") 

if(is_valid_ent(entity)) { 
    new Float:saftey_origin[3] 
    entity_get_vector(entity, EV_VEC_origin, saftey_origin) 
} 

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[0])

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

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

{
cl_cmd(show_hudmessage (index, VIP AT 200 MARKER! GET 

READY![])
}

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

{
cl_cmd(show_hudmessage (index, VIP NEAR ESCAPE POINT! 

RETURN TO SPAWN (TERRORISTS)!!!![])
} 


{
RETURN PLUGIN_HANDELED
{

}

This is what i have so far but it will not compile
__________________
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 , 23:46  
Reply With Quote #28

Damn.. You've got a lot to learn.
__________________
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 , 23:49  
Reply With Quote #29

I know.....I JUST STARTED?!?!?!

EDIT: btw what is wrong with the 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
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 07-10-2005 , 00:26  
Reply With Quote #30

#define origin2
#define VIP_WARN
should be
new origin2
new VIP_WARN

and
public VIP_WARN
should be changed since u already used that name as a variable and u cant have vars and function names be the same.
Freecode 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 03:02.


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