AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how to (https://forums.alliedmods.net/showthread.php?t=17798)

Om3gA 09-09-2005 10:45

how to
 
how do i check if teh player touched a wall ?

v3x 09-09-2005 10:46

Do you mean "world"?

Om3gA 09-09-2005 11:09

well yes like everything it touches or if posible only walls like not player

XxAvalanchexX 09-09-2005 15:44

Code:
public pfn_touch(ptr, ptd) {    if(!is_user_connected(ptr) || is_valid_ent(ptd)) {       return PLUGIN_CONTINUE;    }    new id = ptr;    // zomg, id touched the world    return PLUGIN_CONTINUE; }

Om3gA 09-09-2005 19:54

thx


All times are GMT -4. The time now is 14:28.

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