Jump to content
Sign in to follow this  
blackdog~

Making certain things happen to certain players

Recommended Posts

Ok, say I am in multiplayer and this guy TK's me. Later that day I decide to make a C&H mission. Now, I either want to be able to call that specific person's name (say it was, player) or maybe even his ID number, and then have the game inflict unbelievable amounts of pain and agony into the poor soul who TKed me. I am not asking for a TK prison script, just some kind of way to call a certain player with a certain name or ID and be able to have things only happen to him...

Share this post


Link to post
Share on other sites

I dunno if its possible to call the ID or the actual players nickname. But I have done something similar in the past. I use the standard player1 in the players name field. THen I make that player a sniper for instance (this particulars guys favorite gun) Then knowing the players going to be in that unit, you can do what ever to that unit.

hoz

Share this post


Link to post
Share on other sites

Yeah, something along the lines of:

player1 setpos((getpos player1 select 0), (getpos player1 select 1), ((getpos player1 select 2) + 50))

This would position him 50 feet in the air no matter where he was, then drop him!

Share this post


Link to post
Share on other sites

the problem is you never know what position he is going to pick, and other innocent victims might take that slot named player1 and die for no reason

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×