Posts: 14
Threads: 4
Joined: May 2007
Reputation:
0
Hey i have been thinking of how to create so when you pick up dual guns in a house the automatical gets removed again, i thought of this... But i dont think that is quite the right way..., Could someone please help a little here?
if (GetPlayerWeapon(playerid) == 22)
{
GivePlayerWeapon(playerid,22,0);
Posts: 207
Threads: 28
Joined: Mar 2009
Reputation:
0
Hey, did you return the value? Try to test it on your server.
If it doesn't work, idk then.
Posts: 14
Threads: 4
Joined: May 2007
Reputation:
0
The problem is i don't know where to put it .... i guess i need something like "AtPlayerPickup" or something, but that dosent exsist xD So i have no clue...
Posts: 2,502
Threads: 26
Joined: Apr 2007
Reputation:
0
I don't think picking up pickups that are already in the game will call OnPlayerPickUpPickup, you could use a timer for this function instead.
Posts: 14
Threads: 4
Joined: May 2007
Reputation:
0
True, is there a way to toggle off weaponspawns that already is made though?