Im making a map where I want 1000 points for killing a soldier and 10000 for killing a tank.
I put in this in the init file on both.
this addeventhandler ["Hit",{[_this select 1] exec "Hit.sqs"}]
this addeventhandler ["Hit",{[_this select 1] exec "Hit3.sqs"}]
hit.sqs = soldiers sqs file
hit3.sqs = tanks sqs file
hit.sqs
?!(player==_this select 0):exit
Hint "test2"
player addScore 1000
exit
hit3.sqs
?!(player==_this select 0):exit
Hint "test2"
player addScore 10000
exit
On my own server i can get it to work. (MP) But when i upload it to a dedicated. I only recive the 1000 points for the soldier i killed. It wont give me any points for the tank getting killed. (tank=bmp in this case)
I have a game logic named Server. I tried to use this command on the tank. But it stop working both on dedi server and mine.
this addeventhandler ["Hit",{server call{[_this select 1] exec "Hit3.sqs"}}]
Plz help me
Cain
HOME 
Reply With Quote

