SA-MP Forums Archive
Businesses - 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: Businesses (/showthread.php?tid=549954)



Businesses - RonnyCZ - 09.12.2014

Code:
	if(dialogid == DIALOG_HOTELLV)
    {
    	if(response) // If they clicked 'Yes' or pressed enter
		{
 	  
       		new str[50];
        	if(GetPlayerMoney(playerid) < 100000000) return SCM(playerid,-1,"[ ! ] 100 000 000$ !");
        	GivePlayerMoney(playerid, -100000000);
        	if(Businesses[playerid] == 1) return SendClientMessage(playerid, 0xFFFFFFF, "ok"); 
			Businesses[playerid]= 1;
        	format(str,50,"Firma : Big Hotel Las Venturas\n Capitan %s\n",Nick(playerid));
			Update3DTextLabelText(MyLabel, 0xFFFFFFFF, str);
  			ShowPlayerDialog(playerid,DIALOG_HOTELLV2,DIALOG_STYLE_LIST,"Businesses Hotel","test1\ntest2\ntest3","ok","Close");
			}
			else // Pressed ESC or clicked cancel
        	{
        	    SetTimer("Test",15000,true);
  			}
		}
How do I make it so that no one could buy if you belong to the city and could only rob the
when it comes mcot manimulovat owner will come when another player will be able to just rob