For destroyed variable get killed
#4

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
Look at this callback: https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot

There you can check which objectid the player hit...

And now u have to check if the if(hitid == object[0]) and if object[0] for example is a object that he shouldnt destroyed you call SetPlayerHealth(playerid,0); and important use there DestroyObject(object[0]);

Good Luck
Can you give me example?
Reply


Messages In This Thread
For destroyed variable get killed - by henkas - 17.10.2016, 14:18
Re: For destroyed variable get killed - by henkas - 17.10.2016, 15:51
Re: For destroyed variable get killed - by Kaliber - 17.10.2016, 15:54
Re: For destroyed variable get killed - by henkas - 17.10.2016, 19:46
Re: For destroyed variable get killed - by henkas - 18.10.2016, 09:43
Re: For destroyed variable get killed - by henkas - 18.10.2016, 11:18
Re: For destroyed variable get killed - by henkas - 18.10.2016, 14:09
Re: For destroyed variable get killed - by Micko123 - 18.10.2016, 14:25
Re: For destroyed variable get killed - by henkas - 18.10.2016, 14:45
Re: For destroyed variable get killed - by henkas - 18.10.2016, 20:44

Forum Jump:


Users browsing this thread: 3 Guest(s)