Big_Smoke_GTI Posted April 14, 2006 Share Posted April 14, 2006 Hi everyone. I've got a question about PAWN. I'm a bit new to it so I don't understand everything about codes. But now, my question: I want to set a player as a target in my WIP Bloodring script. Like in LV Manhunt, where you hunt at 1 player. How can you do this..? Thanks in advance =) . Link to comment Share on other sites More sharing options...
stephantom Posted April 14, 2006 Share Posted April 14, 2006 Simply store the hunted player's ID in an extra variable. In your OnPlayerDeath() event check whether the playerid matches the ID you stored. Link to comment Share on other sites More sharing options...
Big_Smoke_GTI Posted April 14, 2006 Author Share Posted April 14, 2006 Ok, I will try . And I've got another question: I want a team to achieve a current number of kills to the other team, and then they will win. Like: Team1 kills 20 players from team2. Team1 wins. Link to comment Share on other sites More sharing options...
stephantom Posted April 14, 2006 Share Posted April 14, 2006 Works also with OnPlayerDeath().This event has got a parameter named killerid. You can check whether this ID belongs to a player from a certain team. Example (I assume that you have done Teams, and the TeamIDs are stored in gTeams): new gTeamScore[2]; // scores for 2 teamsOnPlayerDeath(playerid, killerid, reason) {if(killerid != 255) { gTeamScore[gTeams[killerid]]++; if(gTeamScore[1] >= 20) { // team 1 has reached 20 kills } if(gTeamScore[2] >= 20) { // team 2 has reached 20 kills }}} Link to comment Share on other sites More sharing options...
Big_Smoke_GTI Posted April 14, 2006 Author Share Posted April 14, 2006 Thank You , this is wat I needed . Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now