10.09.2018, 07:17
Код:
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; }