Pickup Problem
#5

Quote:
Originally Posted by SoFahim
Посмотреть сообщение
Show the Pickup code
PHP код:
public OnPlayerPickUpDynamicPickup(playeridpickupid)
{
    for(new 
i!= sizeof(gShop); i++)
    {
        if(
pickupid == gShop[i][SHOP_PICKUP])
        {
            if(
GetPlayerTeam(playerid) > (sizeof(gTeam) - 1)) return SendClientMessage(playeridCOLOR_FIREBRICK"ERROR: You cannot pickup this right now.");
            if(    
gShop[i][SHOP_TEAM] != NO_TEAM &&
                
GetPlayerTeam(playerid) != gShop[i][SHOP_TEAM])
            {
                return 
SendClientMessage(playeridCOLOR_FIREBRICK"ERROR: You can't open enemies' shop!");
            }
            
//dialog check
            
if(GetPlayerDialogID(playerid) != INVALID_DIALOG_ID) return 1;
            return 
ShowPlayerShopDialog(playerid);
        }
    }
    return 
1;
}
ShowPlayerShopDialog(playerid)
{
    new 
dialogstr[556];
    
strcat(dialogstr""SAMP_BLUE"Full Health ($2500)\n");
    
strcat(dialogstr""SAMP_BLUE"Full Armour ($2500)\n");
    
strcat(dialogstr""CORAL"- Weapons List\n");
    
strcat(dialogstr""CORAL"- Misc. Items\n");
    
strcat(dialogstr""CORAL"- Inventory Items");
    return 
ShowPlayerDialog(playeridDIALOG_SHOPDIALOG_STYLE_LIST"Shop!"dialogstr"Select""Close");

Reply


Messages In This Thread
Pickup Problem - by Hemeei - 10.08.2015, 16:34
Re: Pickup Problem - by SoFahim - 10.08.2015, 16:47
Re: Pickup Problem - by Hemeei - 10.08.2015, 17:34
Re: Pickup Problem - by SoFahim - 10.08.2015, 17:36
Re: Pickup Problem - by Hemeei - 10.08.2015, 17:45
Re: Pickup Problem - by SoFahim - 10.08.2015, 17:48
Re: Pickup Problem - by Hemeei - 10.08.2015, 17:50
Re: Pickup Problem - by SoFahim - 10.08.2015, 18:20
Re: Pickup Problem - by valych - 10.08.2015, 18:47
Re: Pickup Problem - by jamesmith12 - 11.08.2015, 02:20

Forum Jump:


Users browsing this thread: 2 Guest(s)