SA-MP Forums Archive
Need alittle help - 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: Need alittle help (/showthread.php?tid=482658)



Need alittle help - aDo7 - 22.12.2013

Hello guys,
that's my Ammunation Business info, But i want to add
PHP код:
cmd:buyguns 
for it,
So any one can help me?

CMDS:

PHP код:
            else if(BizInfo[idx][bType] == 3// Ammunation Business
            
{
                
format(stringsizeof(string), "* %s pushes the door and enters the ammunation."RPN(playerid));
                
ProxDetector(15.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                
SetPlayerPos(playerid314.820983,-141.431991,999.601562);
                
SetPlayerFacingAngle(playerid358.9898);
                
SetCameraBehindPlayer(playerid);
                
SetPlayerInterior(playerid7);
                
SetPlayerVirtualWorld(playerididx+6000);
                return 
1;
            } 
That's my Clothes Store Biz info

PHP код:
            else if(BizInfo[idx][bType] == 2// Clothes Shop Business
            
{
                
format(stringsizeof(string), "* %s pushes the door and enters the clothes shop."RPN(playerid));
                
ProxDetector(15.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                
SetPlayerPos(playerid226.293991,-7.431529,1002.210937);
                
SetPlayerFacingAngle(playerid356.3849);
                
SetCameraBehindPlayer(playerid);
                
SetPlayerInterior(playerid5);
                
SetPlayerVirtualWorld(playerididx+6000);
                
format(stringsizeof(string), "** Welcome to %s's Clothes Shop, Use /buyclothes or /buytoys to purchase items from this store.  **"BizInfo[idx][bOwner]);
                
SendClientMessage(playeridCOLOR_YELLOWstring);
                return 
1;
            }