I can only buy this 1 time per map why?
PHP Code:
else if( equal( data, "imperial" ) )
{
new armor = get_user_armor(id);
if( armor <= 200 )
{
new authid[32];
get_user_authid(id, authid, 31);
new key_exists = TrieKeyExists(playeritem_trie, authid);
new playeritems;
if( key_exists )
TrieGetCell(playeritem_trie, authid, playeritems);
if( CheckSAP(id, IMPERIAL_SAP) )
{
client_print(id, print_chat, "[ZP] You bought Imperial Armor.");
SAPMessage(id, "Bought Imperial Armor");
set_user_armor(id, armor+IMPERIAL_ARMOR);
TrieSetCell(playeritem_trie, authid, playeritems|TRIE_IMPERIAL);
}
}
else
client_print(id, print_center, "You have too much Armor");
}
else
client_print(id, print_center, "You have too much Armor");
}
And this one can't i even buy it just says: You cannot buy with other sap items!
PHP Code:
f( equal( data, "tactical" ) )
{
if( tactical_count < TACTICAL_NUMBER )
{
if( !gauntlet[id] && dynamic_deagle[id] && !chicken_pecker[id])
{
if( CheckSAP(id, TACTICAL_SAP) )
{
client_print(id, print_chat, "[ZP] You bought Tactical Shotgun.");
SAPMessage(id, "Bought A Tactical Shotgun");
tactical_shotgun[id] = 1;
tactical_count++;
give_item(id, "weapon_m3");
has_tactical[id] = true
}
}
else
client_print(id, print_center, "Cannot buy with other sap items!");
}
else
client_print(id, print_center, "Too many Tactical Shotgun's Bought");
}