Raised This Month: $51 Target: $400
 12% 

Need Help to block Rest Upgrades Gunxpmod by Invis


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Godofwar
AlliedModders Donor
Join Date: Dec 2015
Location: Germany
Old 05-01-2020 , 08:58   Need Help to block Rest Upgrades Gunxpmod by Invis
Reply With Quote #1

I have to different AWP Unlocks.

These are the lines

ItemIndex = gxm_register_gun("AWM Wolf Rider", 5200, 21, 1, 0, "Awp")
ItemIndex = gxm_register_gun("Super Awp", 1250, 0, 0, 0, "Awp")

or maybe it is this

public fwPrecachePost(type, const name[])

IDK ........

But still i can upgrade both Unlocks, so what is wrong in this? i dont understand it. Can anyone help?



gxm_shop.inc
Code:
#if defined _gxm_shop_included
    #endinput
#endif

#define _gxm_shop_included

native gxm_register_gun( const Name[ ], const XP, const Level = 0, const VIP = 0, const Round = 0, const Type[ ] = 0);
native gxm_register_item( const Name[ ], const XP, const Level = 0, const VIP = 0, const Round = 0, const Type[ ] = 0);
native gxm_register_pistol( const Name[ ], const XP, const Level = 0, const VIP = 0, const Round = 0, const Type[ ] = 0);
native gxm_register_knife( const Name[ ], const XP, const Level = 0, const VIP = 0, const Round = 0, const Type[ ] = 0);
native gxm_register_grenade( const Name[ ], const XP, const Level = 0, const VIP = 0, const Round = 0, const Type[ ] = 0);

forward gxm_gun_selected( Player, ItemIndex);
forward gxm_item_selected( Player, ItemIndex);
forward gxm_pistol_selected( Player, ItemIndex);
forward gxm_knife_selected( Player, ItemIndex);
forward gxm_grenade_selected( Player, ItemIndex);


Code:
From an old history with him maybe it helps anyone and help me...  

static bool:Knife[33]   is this the line which block rest of unlocks when i used one knife unlock that it block rest of knife unlocks? 
19:57
const Type[ ] = 0);   i dont find anything about this  google didnt found it too. So i checked other unlocks from u but didnt found anything about it.  so can u maybe explain me this .. :/
 
Karolis, 10:13
write some string in that parameter place and you will see

10:15
i did  

const Type[ ] = 0);

Error: Expected token: "=", but found "[" on line 22

Karolis, 10:17
Sorry, it will take too long to explain. Put the string the same as other parameters like name, description etc. why are you writing "const type[]..." ??

10:17
const type was showing in gxm_shop.inc 

Karolis, 10:18
just type a string

but can u say me maybe which is for block upgrades like when i have ak47 upgraded that i cant upgrade theother ones ak47 ?!   its curiously xD

Karolis, 10:28
there is an extra parameter when creating new item, to set a string of the unlock. If the name matches, then other item with that name won't be available
Attached Files
File Type: sma Get Plugin or Get Source (gxm_ul_awp_wolf_1 (1).sma - 89 views - 15.8 KB)
File Type: sma Get Plugin or Get Source (unlock_awp (1).sma - 105 views - 3.0 KB)
Godofwar is offline
XxScripteRxX
Member
Join Date: Aug 2019
Old 01-05-2021 , 06:48   Re: Need Help to block Rest Upgrades Gunxpmod by Invis
Reply With Quote #2

give the gunxpmod_shop.sma and gunxpmod.inc
XxScripteRxX is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode