Raised This Month: $ Target: $400
 0% 

Solved CS:GO All Chicken follow one random Player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iskenderkebab33
Senior Member
Join Date: Jun 2018
Old 07-26-2018 , 16:04   CS:GO All Chicken follow one random Player
Reply With Quote #1

Hey, as the title say, i need a Plugin where all Chickens on the map follow one random Player after round start, if someone kill the guy round will end and in Chat will Print (the killer) "<name> won the round", please.

Thanks

Last edited by iskenderkebab33; 11-03-2018 at 17:30.
iskenderkebab33 is offline
rogeraabbccdd
Veteran Member
Join Date: Jun 2015
Location: de_dust2
Old 07-26-2018 , 20:51   Re: CS:GO All Chicken follow one random Player
Reply With Quote #2

Spoiler


Also available on github.
Attached Files
File Type: sp Get Plugin or Get Source (kento_chicken_leader.sp - 264 views - 1.8 KB)
__________________

Please keep in mind, nobody have responsibility to help you, especially who don't try to Google first.
I only read messages in Chinese and English.

GitHub | Discord:Kento#2118
rogeraabbccdd is offline
iskenderkebab33
Senior Member
Join Date: Jun 2018
Old 07-27-2018 , 02:15   Re: CS:GO All Chicken follow one random Player
Reply With Quote #3

Quote:
Originally Posted by rogeraabbccdd View Post
Spoiler


Also available on github.
many thanks! can you also add, if someone kill a player (not the Chicken Leader) the round will End and it will Print, "You killed the wrong guy, starting new round.." would by nice, please. Thanks!

Last edited by iskenderkebab33; 07-27-2018 at 02:42.
iskenderkebab33 is offline
mug1wara
AlliedModders Donor
Join Date: Jun 2018
Old 07-27-2018 , 09:49   Re: CS:GO All Chicken follow one random Player
Reply With Quote #4

Getting random player I would.

int iPlayer = GetRandomInt(1, MaxClients);
mug1wara is offline
rogeraabbccdd
Veteran Member
Join Date: Jun 2015
Location: de_dust2
Old 07-27-2018 , 11:15   Re: CS:GO All Chicken follow one random Player
Reply With Quote #5

Quote:
Originally Posted by mug1wara View Post
Getting random player I would.

int iPlayer = GetRandomInt(1, MaxClients);
But... how can we know it's a valid player?
__________________

Please keep in mind, nobody have responsibility to help you, especially who don't try to Google first.
I only read messages in Chinese and English.

GitHub | Discord:Kento#2118

Last edited by rogeraabbccdd; 07-27-2018 at 11:16.
rogeraabbccdd is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode