Help with /shop
#5

Quote:
Originally Posted by ServerScripter
View Post
pawn Code:
if(gTeam[killerid] == TEAM_ZOMBIE)
killerid must be changed into playerid, because it is the playerid that is executing the command. And not the killerid.
killerid is only to be used under OnPlayerDeath & Custom Callbacks. Not under OnPlayerCommandText.

So use:
pawn Code:
if(gTeam[playerid] == TEAM_ZOMBIE)
I hope this helps you.

Kind Regards,
Improvement™
Reply


Messages In This Thread
Help with /shop - by ServerScripter - 21.08.2011, 14:54
Re: Help with /shop - by System64 - 21.08.2011, 14:57
Re: Help with /shop - by ServerScripter - 21.08.2011, 15:12
Re: Help with /shop - by [MWR]Blood - 21.08.2011, 15:15
Re: Help with /shop - by Improvement™ - 21.08.2011, 15:16
Re: Help with /shop - by Kush - 21.08.2011, 15:18
Re: Help with /shop - by ServerScripter - 21.08.2011, 15:28
Re: Help with /shop - by Improvement™ - 21.08.2011, 15:28
Re: Help with /shop - by Improvement™ - 21.08.2011, 15:31
Re: Help with /shop - by ServerScripter - 21.08.2011, 15:34
Re: Help with /shop - by [MWR]Blood - 21.08.2011, 15:38
Re: Help with /shop - by ServerScripter - 21.08.2011, 15:43
Re: Help with /shop - by System64 - 21.08.2011, 15:45
Re: Help with /shop - by [MWR]Blood - 21.08.2011, 15:48
Re: Help with /shop - by ServerScripter - 21.08.2011, 16:05
Re: Help with /shop - by [MWR]Blood - 21.08.2011, 16:07
Re: Help with /shop - by ServerScripter - 21.08.2011, 16:17
Re: Help with /shop - by [MWR]Blood - 21.08.2011, 16:22
Re: Help with /shop - by ServerScripter - 21.08.2011, 16:26
Re: Help with /shop - by Improvement™ - 21.08.2011, 16:29

Forum Jump:


Users browsing this thread: 1 Guest(s)