Object Problem
#1

hi guys so i have this special object:
Код:
PlayerExp[playerid] = CreateObject(1252, GetPVarFloat(playerid,"BXPos")+1, GetPVarFloat(playerid,"BYPos")+1, GetPVarFloat(playerid,"BZPos")-0.8942,   90.000, 0.0000, 0.0000);
it will destroy [explode] after i shoot it , but after a little time it will auto re-create! i want to its not create again what should i do?
Reply
#2

Just delete the object when you shot it.

https://sampwiki.blast.hk/wiki/DestroyObject
Reply
#3

yeah , but how should i detect that the object was explode once!!?
Reply
#4

Show your code please, show how you destroy this object.
Reply
#5

Read the message below.
Reply
#6

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
You must use a dynamic object (using STREAMER plugin) then you will be able to use: `OnPlayerShootDynamicObject(playerid, weaponid, objectid, Float, Float:y, Float:z)` callback.
You can detect it with OnPlayerWeaponShot (BULLET_HIT_TYPE_OBJECT), without having to use any external plugin.
Reply
#7

Quote:
Originally Posted by DaniceMcHarley
Посмотреть сообщение
You can detect it with OnPlayerWeaponShot (BULLET_HIT_TYPE_OBJECT), without having to use any external plugin.
My bad, I removed my message.
I knew there was a callback called like that without using the streamer plugin but I didn't found it. :c
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)