01.04.2016, 09:37
The player has to input the object model ID as a parameter so AttachAble function should not check the model as it's given already.
Change to:
EDIT: This will need to modify the command as Antoniohl posted. I find easier to use it like this though:
and then you can use your current code.
Change to:
pawn Код:
switch(objectid)
pawn Код:
#define TYPE_OBJECT_ID 0
#define TYPE_OBJECT_MODEL_ID 1
AttachAble(object, type = 0)
{
switch(!type ? GetObjectModel(object) : object)
{
case 19601,19843,19796: return 1;
}
return 0;
}