SA-MP Forums Archive
Warning - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Warning (/showthread.php?tid=658705)



Warning - ZigGamerx - 10.09.2018

SOLVED


Re: Warning - UFF - 10.09.2018

Код:
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;
}



Re: Warning - ZigGamerx - 10.09.2018

Thanks bro +REP