Simple question [Still need help :( ]
How to make that player on other round wouldn't be crysis?
This is my code (And please don't rip this code or my idea) PHP Code:
|
Re: Simple question
I Tried this:
public GetCrysis( id ) { Crysis[id] = false; // This line new iPlayers[ 32 ], iNum; get_players( iPlayers, iNum ); new iRand = random( iNum ); // Get random player Crysis[ iPlayers[ iRand ] ] = true; // Set the array index to true client_print(iRand, print_chat, "You are Crysis now!"); } |
Re: Simple question
RoundStart logevent doesn't parse a "id", so you're basically always setting Crysis[0] = false
You don't need an entire array if there can be only 1 player at a time, just set a variable to the player id. Also, I don't think you're getting random player ID right... since player IDs can have gaps... meaning, 4 players are in-game... and their entity ids can be: 1,2,5 and 16, but that get_players() returns 4, and you'll have only 1-4 range which will fk up your random player. PS: I'm quite curious what you mean by "You are Crysis", that just sounds wrong. The suit is named "nanosuit" and "Crysis" is "crisis" (search translation), Crytek likes to use their name in every game they make. |
Re: Simple question
Could some one correct my mistakes because I don't know how to correct them.
|
Re: Simple question
Quote:
|
Re: Simple question [Still need help]
Thats what i did
|
Re: Simple question [Still need help]
PHP Code:
|
Re: Simple question [Still need help]
It still doesn't work. On new round my skins doesn't change. That means that the Crysis array is still true and setarray didn't work. ;(
|
Re: Simple question [Still need help]
Quote:
PHP Code:
|
Re: Simple question [Still need help]
It works ! Thank you. When i finish this plugin your going to be in my credit list :)
|
| All times are GMT -4. The time now is 23:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.