View Single Post
will2tango
Member
Join Date: Nov 2009
Location: England
Old 06-21-2010 , 06:10   Re: [ZPS] Carrier / Infected Chat
Reply With Quote #4

Hey Master, that is an impressive plugin! ill have to give that one a try!
Yea that was a tricky one, I must admit! there are two ways, the simple way I have used in this plugin.
To check if a player is the carrier I first check for team three, then I check the players weapon.
Code:
decl String:attWeapon[32];
GetClientWeapon(client, attWeapon, sizeof(attWeapon));
if (StrEqual("weapon_carrierarms",attWeapon))
If their current weapon is "weapon_carrierarms" we know they are a carrier

Now the second is a little more difficult, but not only can it check if someone is a carrier it can also make them a Carrier!
Have a look at Sammys thred here: http://www.zombiepanic.org/forums/sh...hlight=carrier
But dont make the same mistake as me, its not an SDKcall offset, its an entprop offset

I'm no where near as good as you or Sammy, but give me a shout if I can be of any help. Your best bet is Sammy-ROCK, Im fairly sure he can do anything in a ZPS plugin! He has helped me on my way many times already! but i might be able to help out a little Good Luck
will2tango is offline