Help with scripting
#1

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!
Reply
#2

Please!?
Reply
#3

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

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!");
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)