Raised This Month: $344 Target: $400
 86%   Almost there!

Problem with "worldspawn" code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 07-16-2020 , 04:57   Problem with "worldspawn" code
Reply With Quote #1

I use the following code to do something and it works fine

PHP Code:
register_touch"worldspawn""grenade""CWeaponBox_Touch" ); 
But this code does not work,
The code ("spray") is incorrect, right?
PHP Code:
register_touch"worldspawn""spray""CWeaponBox_Touch" ); 
Does anyone know the correct code?
__________________
Jailbreak AD 2.0

The greatest civilization of 🇮🇷IRAN🇮🇷
alferd is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-17-2020 , 05:13   Re: Problem with "worldspawn" code
Reply With Quote #2

PHP Code:
register_touch"worldspawn""spray""CWeaponBox_Touch" ); 
what are you trying to do ? you want to catch the spraying event?

also before creating a useless thread search first, you will definitely find an answer, also when creating a topic first pick a logical title name, worldspawn is a the world and its id is 0 always, its not an entity its basically the map grounds, walls and ceiling.
__________________
@Jailbreak Main Mod v2.6.6 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 07-17-2020 at 05:19.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 07-17-2020 , 09:46   Re: Problem with "worldspawn" code
Reply With Quote #3

infodecal
__________________
DJEarthQuake is offline
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 07-17-2020 , 12:05   Re: Problem with "worldspawn" code
Reply With Quote #4

Quote:
Originally Posted by Natsheh View Post
what are you trying to do ?.
I want to make a plugin called "spray contest" for myself

Quote:
Originally Posted by Natsheh View Post
you will definitely find an answer.
I searched a lot but did not find anything

And now I ask you for help
__________________
Jailbreak AD 2.0

The greatest civilization of 🇮🇷IRAN🇮🇷

Last edited by alferd; 07-17-2020 at 12:07.
alferd is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-17-2020 , 22:19   Re: Problem with "worldspawn" code
Reply With Quote #5

Quote:
Originally Posted by alferd View Post
I want to make a plugin called "spray contest" for myself
Not helpful. Explain what you want this plugin to do.
__________________
fysiks is offline
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 07-18-2020 , 04:55   Re: Problem with "worldspawn" code
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
Not helpful. Explain what you want this plugin to do.
This plugin works, Someone "sprays" the wall, And the plugin shows who raises the "Spray"

( Someone has requested this plugin https://forums.alliedmods.net/showpo...47&postcount=3 )
__________________
Jailbreak AD 2.0

The greatest civilization of 🇮🇷IRAN🇮🇷
alferd is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-18-2020 , 08:14   Re: Problem with "worldspawn" code
Reply With Quote #7

explain this statement ...

Quote:
Originally Posted by alfred
And the plugin shows who raises the "Spray"
__________________
@Jailbreak Main Mod v2.6.6 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
JocAnis
Veteran Member
Join Date: Jun 2010
Old 07-18-2020 , 09:00   Re: Problem with "worldspawn" code
Reply With Quote #8

I guess he wants to detect who sprayed higher on the wall
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...)
JocAnis is offline
alferd
Veteran Member
Join Date: Dec 2019
Location: Iran is Always Eternal
Old 07-18-2020 , 11:26   Re: Problem with "worldspawn" code
Reply With Quote #9

Quote:
Originally Posted by JocAnis View Post
I guess he wants to detect who sprayed higher on the wall
This is exactly what it means
yes
__________________
Jailbreak AD 2.0

The greatest civilization of 🇮🇷IRAN🇮🇷
alferd 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 11:22.


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