SA-MP Forums Archive
Nightvision problem!!! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Nightvision problem!!! (/showthread.php?tid=258058)



Nightvision problem!!! - Ronaldo_raul™ - 28.05.2011

I have made a pickup where the player gets night vision and thermal goggles but when i get in to the pickup it just give me the thermal goggles not the night-vision ******s........anyone can help?


Re: Nightvision problem!!! - Infamous - 28.05.2011

Quote:
Originally Posted by ronaldoraul
Посмотреть сообщение
I have made a pickup where the player gets night vision and thermal goggles but when i get in to the pickup it just give me the thermal goggles not the night-vision ******s........any can help?
They use the same slot so it's one or the other i'm affraid. Unless you make an inventory system or something to that effect.


Re: Nightvision problem!!! - sleepysnowflake - 28.05.2011

The guy in front of me is right. I should get some sleep. ^^


Re: Nightvision problem!!! - Ronaldo_raul™ - 28.05.2011

Quote:
Originally Posted by Infamous
Посмотреть сообщение
They use the same slot so it's one or the other i'm affraid. Unless you make an inventory system or something to that effect.
hmm didn't understood what you mean?


Re: Nightvision problem!!! - sleepysnowflake - 28.05.2011

It is like TEC and UZI, You can't have both.


Re: Nightvision problem!!! - Ronaldo_raul™ - 28.05.2011

Quote:
Originally Posted by Berlovan
Посмотреть сообщение
It is like TEC and UZI, You can't have both.
so what can i do to get Thermal and Night-vision goggles in one pickup


Re: Nightvision problem!!! - Infamous - 28.05.2011

Quote:
Originally Posted by ronaldoraul
Посмотреть сообщение
hmm didn't understood what you mean?
Well you can store a variable with 3 values:

0 - Neither.
1 - Night Vision.
2 - Thermal Vision.

Now you can alter that variable using a command, not very difficult to do although the player will never have both goggle types at once.


Re: Nightvision problem!!! - Ronaldo_raul™ - 28.05.2011

Quote:
Originally Posted by Infamous
Посмотреть сообщение
Well you can store a variable with 3 values:

0 - Neither.
1 - Night Vision.
2 - Thermal Vision.

Now you can alter that variable using a command, not very difficult to do although the player will never have both goggle types at once.
hmm can you give example.........thanks in advance


Re: Nightvision problem!!! - sleepysnowflake - 28.05.2011

pawn Код:
if (strcmp(cmdtext, "/wtest1", true)==0)
    {
        GivePlayerWeapon(playerid,368,1)
    }
if (strcmp(cmdtext, "/wtest2", true)==0)
    {
        GivePlayerWeapon(playerid,369,1)
    }
Like this ?


Re: Nightvision problem!!! - Infamous - 28.05.2011

- Removed.
Just do as mentioned above.