SA-MP Forums Archive
Help with scripting - 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: Help with scripting (/showthread.php?tid=393977)



Help with scripting - RadimSvojServer - 20.11.2012

Hello,
I am a beginner and sorry for the bad English I'm from Croatia , but can you command / dooropen , / doorclose and /opencells and /closecells put that can only be opened PD (organization 1)
****** Translate

http://pastebin.com/rVQp24GJ


Thanks!


Re: Help with scripting - RadimSvojServer - 20.11.2012

Please!?


Re: Help with scripting - Sting. - 20.11.2012

Quote:
Originally Posted by RadimSvojServer
Посмотреть сообщение
Please!?
Patience, someone will help you out momentarily.


Re: Help with scripting - park4bmx - 20.11.2012

what is the problem with them ?
EDI miss read
pawn Код:
//crest the organization like this(outside any callback,top of script)
new Organization[MAX_PLAYERS];

//Then set them to the players you want to be in organization 1
Organization [playerid]=1;

//then the cmd
if(strcmp(cmd, "/dooropen", true) == 0) {
        if(IsPlayerInRangeOfPoint(playerid, 2.0,1849.32995605,-1714.31005859,5201.54003906) && Organization [playerid]==1)
        {
            MoveObject(door1,1849.32995605-1.25,-1714.31005859,5201.54003906,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: door 1 has been opened!");
            return 1;
        }
        else if(IsPlayerInRangeOfPoint(playerid, 2.0,1847.31994629,-1722.56994629,5201.54003906) && Organization [playerid]==1)
        {
            MoveObject(door2,1847.31994629,-1722.56994629-1.25,5201.54003906,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: door 2 has been opened!");
            return 1;
        }
        else if(IsPlayerInRangeOfPoint(playerid, 2.0,1854.01953125,-1726.27343750,5201.54003906) && Organization [playerid]==1)
        {
            MoveObject(door3,1854.01953125,-1726.27343750-1.25,5201.54003906,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: door 3 has been opened!");
            return 1;
        }
        else if(IsPlayerInRangeOfPoint(playerid, 2.0,1862.02246094,-1710.91992188,5201.54003906) && Organization [playerid]==1)
        {
            MoveObject(door4,1862.02246094-1.25,-1710.91992188,5201.54003906,0.50);
            SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: door 4 has been opened!");
            return 1;
        }
        else SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You are not near any door!");
    }