Help! Anti - DM
#1

Hello,

How do you stop people from shooting eachother. I mean like, say a cop tries to shoot another cop. He doesn't lose any health! Same with a civilian trying to shoot another civilian.

Help appreciated!

Thanks
Reply
#2

I guess you can use this function to find out if it's a civilian who shot or a cop.
https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage
Reply
#3

https://sampwiki.blast.hk/wiki/OnPlayerTakeDamage

And a function that checks what's team they are in.

Sorry if this was wrong or something but I gave it a try.
Reply
#4

SetPlayerTeam
Reply
#5

Quote:
Originally Posted by [ABK]Antonio
Посмотреть сообщение
SetPlayerTeam? This has nothing to do with what I'm asking for, I already have teams...

And, can you guys help me, cos I don't know what to put with OnPlayerTakeDamage
Reply
#6

Quote:
Originally Posted by FunnyBear
Посмотреть сообщение
Hello,

How do you stop people from shooting eachother. I mean like, say a cop tries to shoot another cop. He doesn't lose any health! Same with a civilian trying to shoot another civilian.

Help appreciated!

Thanks
Quote:
Originally Posted by FunnyBear
Посмотреть сообщение
SetPlayerTeam? This has nothing to do with what I'm asking for, I already have teams...

And, can you guys help me, cos I don't know what to put with OnPlayerTakeDamage
It has everything to do with what you're asking for...
Reply
#7

Can someone help?
Reply
#8

Umm just find out if the issuerid parameter is the ID of the same team and then restore the players health?
Reply
#9

Quote:
Originally Posted by Mystique
Посмотреть сообщение
Umm just find out if the issuerid parameter is the ID of the same team and then restore the players health?
Can you give an example?
Reply
#10

Sigh. Read what Antonio said.
Reply


Forum Jump:


Users browsing this thread: 9 Guest(s)