GetObjectModel help
#3

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:
pawn Код:
switch(objectid)
EDIT: This will need to modify the command as Antoniohl posted. I find easier to use it like this though:
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;
}
and then you can use your current code.
Reply


Messages In This Thread
GetObjectModel help - by N0FeaR - 31.03.2016, 14:01
Re: GetObjectModel help - by N0FeaR - 01.04.2016, 09:18
Re: GetObjectModel help - by Konstantinos - 01.04.2016, 09:37
Re: GetObjectModel help - by Antoniohl - 01.04.2016, 09:38
Re: GetObjectModel help - by N0FeaR - 01.04.2016, 10:08
Re: GetObjectModel help - by BroZeus - 01.04.2016, 10:15
Re: GetObjectModel help - by N0FeaR - 01.04.2016, 11:17
Re: GetObjectModel help - by jlalt - 01.04.2016, 11:26
Re: GetObjectModel help - by N0FeaR - 01.04.2016, 11:48

Forum Jump:


Users browsing this thread: 2 Guest(s)