What happend
#11

Quote:
Originally Posted by Man43
View Post
So how to fix it? Example: If the player has kidnapped the enemy player and when the player In the checkpoint the enemy player must be dead! how
Where the player enters the checkpoint, in there where it checks the PlayerIsTargetedBy, it needs to be the opposite.





You need to loop all players, checking if they are the target, and check the value of that against the playerid.


if PlayerIsTargetedBy[i]=playerid;


-Edit- You will also want to check if the kidnapped player is indeed with the kidnapper!!!! ----


then kill i.



What codestyle has put up is quite nice code for structure and such, you would be advised to keep messing with it, and read over it a bit to understand it more.


Reading good code is a good way to see good techniques and get more familiar with the language and such.
Reply


Messages In This Thread
What happend - by Man43 - 14.08.2018, 21:41
Re: What happend - by CodeStyle175 - 14.08.2018, 21:43
Re: What happend - by Man43 - 14.08.2018, 21:44
Re: What happend - by CodeStyle175 - 14.08.2018, 21:45
Re: What happend - by Man43 - 14.08.2018, 21:46
Re: What happend - by CodeStyle175 - 14.08.2018, 21:50
Re: What happend - by Man43 - 14.08.2018, 22:27
Re: What happend - by Man43 - 14.08.2018, 22:56
Re: What happend - by AlexMSK - 14.08.2018, 23:07
Re: What happend - by Man43 - 14.08.2018, 23:45
Re: What happend - by Sew_Sumi - 15.08.2018, 00:29

Forum Jump:


Users browsing this thread: 1 Guest(s)