AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   (Not)solid player (https://forums.alliedmods.net/showthread.php?t=237805)

~Ice*shOt 03-29-2014 17:56

(Not)solid player
 
Hey, I tried to do something like this: when player X writes /say command all other players are SOLID_NOT, but only for player X, so player X can walk through other players and other players can walk through player X.


My code, it's not right, I know, maybe someone could write me a normal one?
PHP Code:

public clcmd_say()
{
    new 
Players[32], NumOthers
    get_players
(PlayersNum)

    for (new 
0Numi++)
    {
        
Others Players[i]

        
set_pev(Otherspev_solidSOLID_NOT)
    }



jok 03-29-2014 20:38

Re: (Not)solid player
 
Basically you're saying that if player X tries to pass through player Y, he'll manage to do that, but if player Y tries to pass through player Z, he can't?

I might be mistaken but I think you need to use AddToFullPack and set_es for this.

~Ice*shOt 03-30-2014 09:01

Re: (Not)solid player
 
So should I use semiclip method? There's no simpler way?


All times are GMT -4. The time now is 05:58.

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