Findout if Player is on CT or T Base
Hello,
I have an simpel Problem with an Script. I try to check via an "IF" if the player is on his OWN Base or on ENEMYS Base. I tryd with if(cs_get_user_buyzone(id)>0), but this works only for own Buyzone, and if the Map didnt have an Buyzone... it want works... So i need the Vars to check if the player is on own or enemy base.. Please help... Thanks a lot. XCoder |
There are no nice ways.
|
Not a very helpful response, VEN.
|
Something like this should work. (more experienced coders can optimize this I bet)
Code:
|
Quote:
Quote:
|
Quote:
Code:
|
That code tells you when you're near a spawn point but that doesn't necessarily mean you're in a buy zone.
Just wanted to make that clear in case being in the buyzone is what he's really after. |
um okay thanks verry much, but i dont understand what this makes
else if(equal(szClassname,"info_player_deathmatch" )) What info_player_deathmatch means? Is this normal for Terror Base? Greets XCoder |
Yes, it's a T spawn point.
|
Okay great...
Then should it work like i want it ... I will try it out now! Hope Server dont crash :) |
| All times are GMT -4. The time now is 16:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.