#1

Hello guys, i need anti destroying box how i can get it ?
Reply
#2

Anti destroying box? Is it a box model which can't be broken?
SA-MP doesn't allow us to set this behaviour for objects, so there are 2 ways for you to choose from:
- Search for the same box but without "breakable" behaviour
- Destoroy object by timer / when someone shot it and re-create at the same position

Or is it some other kind of box you are asking for?
Reply
#3

i have zombie gamemode, all i need is when player shoot the box send message to the admin's !
Reply
#4

https://sampwiki.blast.hk/wiki/OnPlayerWeaponShot
PHP код:
public OnPlayerWeaponShot(playeridweaponidhittypehitidFloat:fXFloat:fYFloat:fZ)
{
    if ( 
hittype == BULLET_HIT_TYPE_OBJECT && hitid == [Box object ID] ) {
        
// playerid shot box, here you can send message to admins 
    
}
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)