AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Problem with "worldspawn" code (https://forums.alliedmods.net/showthread.php?t=326043)

alferd 07-16-2020 04:57

Problem with "worldspawn" code
 
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?

Natsheh 07-17-2020 05:13

Re: Problem with "worldspawn" code
 
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.

DJEarthQuake 07-17-2020 09:46

Re: Problem with "worldspawn" code
 
infodecal

alferd 07-17-2020 12:05

Re: Problem with "worldspawn" code
 
Quote:

Originally Posted by Natsheh (Post 2710450)
what are you trying to do ?.

I want to make a plugin called "spray contest" for myself

Quote:

Originally Posted by Natsheh (Post 2710450)
you will definitely find an answer.

I searched a lot but did not find anything

And now I ask you for help

fysiks 07-17-2020 22:19

Re: Problem with "worldspawn" code
 
Quote:

Originally Posted by alferd (Post 2710493)
I want to make a plugin called "spray contest" for myself

Not helpful. Explain what you want this plugin to do.

alferd 07-18-2020 04:55

Re: Problem with "worldspawn" code
 
Quote:

Originally Posted by fysiks (Post 2710552)
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 )

Natsheh 07-18-2020 08:14

Re: Problem with "worldspawn" code
 
explain this statement ...

Quote:

Originally Posted by alfred
And the plugin shows who raises the "Spray"


JocAnis 07-18-2020 09:00

Re: Problem with "worldspawn" code
 
I guess he wants to detect who sprayed higher on the wall

alferd 07-18-2020 11:26

Re: Problem with "worldspawn" code
 
Quote:

Originally Posted by JocAnis (Post 2710595)
I guess he wants to detect who sprayed higher on the wall

This is exactly what it means
yes


All times are GMT -4. The time now is 13:53.

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