Custom Block weapon pickup (CSS)
I'm tried to strip terroist team when they pick up an item (theier only ment to have knife)
so far i have: Code:
StripAndGive( client ) i've tried replaceing them with userid but thats has the problem how do i get around this problem? |
Re: Custom Block weapon pickup (CSS)
I think you need to use this in the Event_pickup:
client = GetClientOfUserId(client) To get the correct client ID. |
Re: Custom Block weapon pickup (CSS)
well it's stoped the undfined symbol for the code above but now i got it for the code below >.<
Code:
public Action:Event_pickup(client = GetClientOfUserId(client), Handle:event, const String:name[], bool:dontBroadcast) |
Re: Custom Block weapon pickup (CSS)
Lol
PHP Code:
|
Re: Custom Block weapon pickup (CSS)
o yea lol thanks
|
Re: Custom Block weapon pickup (CSS)
You could look into SDKHooks and WeaponCanUse ~ this will prevent the player from picking up items they can't use.
|
Re: Custom Block weapon pickup (CSS)
Quote:
|
Re: Custom Block weapon pickup (CSS)
Something like this:
PHP Code:
|
Re: Custom Block weapon pickup (CSS)
that isn't working for me it wont block any weapons at all
|
Re: Custom Block weapon pickup (CSS)
Quote:
|
All times are GMT -4. The time now is 12:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.