Warning
#2

Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
   if(pickupid == pickupshopC)
   {
	  if(GetPlayerTeam(playerid) == TEAM_CIVILIANS)
	  { 
	   ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "Weapon shop", "Knife - 100$\nGrenades - 500$", "Buy", "Cancel");
	  }
	  else SendClientMessage(playerid, -1, "You cannot use another team shop");
   }
   if(pickupid == pickupshopT)
   {
    if(GetPlayerTeam(playerid) ==  TEAM_TERRORIST)
	{ 
      ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "Weapon shop", "Knife - 100$\nGrenades - 500$", "Buy", "Cancel");
    }
    else SendClientMessage(playerid, -1, "You cannot use another team shop");
   }
   return 1;
}
Reply


Messages In This Thread
Warning - by ZigGamerx - 10.09.2018, 07:08
Re: Warning - by UFF - 10.09.2018, 07:17
Re: Warning - by ZigGamerx - 10.09.2018, 07:46

Forum Jump:


Users browsing this thread: 1 Guest(s)