Raised This Month: $ Target: $400
 0% 

[SOLVED] How To ignores all items delivered by maps


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GalegO
Member
Join Date: May 2010
Location: Brazil
Old 10-21-2010 , 13:44   [SOLVED] How To ignores all items delivered by maps
Reply With Quote #1

Some maps give weapons to the players (eg awp_india). Someone could write a function that ignores all items delivered by maps?

Thanks guys !

EDIT: Thanks, works like a charms

Last edited by GalegO; 10-26-2010 at 11:32.
GalegO is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-21-2010 , 14:01   Re: How To ignores all items delivered by maps
Reply With Quote #2

Maybe: http://forums.alliedmods.net/showpos...3&postcount=14
__________________
fysiks is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-21-2010 , 14:05   Re: How To ignores all items delivered by maps
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
He would need to change "armoury_entity" to "game_player_equip"
__________________
xPaw is offline
GalegO
Member
Join Date: May 2010
Location: Brazil
Old 10-21-2010 , 14:06   Re: How To ignores all items delivered by maps
Reply With Quote #4

OMG! Try to search using other words :'(

Thanks!

I'll try adapt this in my plugin...
GalegO is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-21-2010 , 14:15   Re: How To ignores all items delivered by maps
Reply With Quote #5

Quote:
Originally Posted by xPaw View Post
He would need to change "armoury_entity" to "game_player_equip"
I guess I didn't understand what he was talking about then. But, it's good to know it's a quick modification .
__________________
fysiks is offline
GalegO
Member
Join Date: May 2010
Location: Brazil
Old 10-21-2010 , 14:21   Re: How To ignores all items delivered by maps
Reply With Quote #6

Is correct to do?

PHP Code:
if(equal(szClassName"armoury_entity") || equal(szClassName"game_player_equip")) 
Becouse I want block the entities too.
GalegO is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-21-2010 , 14:38   Re: How To ignores all items delivered by maps
Reply With Quote #7

Quote:
Originally Posted by GalegO View Post
Is correct to do?

PHP Code:
if(equal(szClassName"armoury_entity") || equal(szClassName"game_player_equip")) 
Becouse I want block the entities too.
Looks fine. Try it out and see.
__________________
fysiks is offline
GalegO
Member
Join Date: May 2010
Location: Brazil
Old 10-21-2010 , 14:43   Re: How To ignores all items delivered by maps
Reply With Quote #8

Thanks, I'll try later. I'm not in home now.

I'll update this thread later with the results.

EDIT:

Works FINE!

Thanks again.

Last edited by GalegO; 10-21-2010 at 18:23.
GalegO is offline
Reply


Thread Tools
Display Modes

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 10:18.


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