[Map] [MAP]Admin House
#8

Quote:
Originally Posted by [DSK
Zh3r0 ]
Nic, but dude, add an Admin check or look a bit at this code
pawn Код:
if (strcmp(cmdtext, "/opend1", true) == 0)
    {
        MoveObject(door, -1478.891235, 2643.351563, 59.087662, 3.5);
        return 1;
    }

    if (strcmp(cmdtext, "/closed1", true) == 0)
    {
        MoveObject(door , -1483.239014, 2643.393066, 59.073196, 3.5);
        return 1;
    }
    if (strcmp(cmdtext, "/opend2", true) == 0)
    {
      MoveObject(door2,-1467.543579, 2623.611084, 59.080223, 3.5);
      return 1;
    }
    if (strcmp(cmdtext, "/closed2", true) == 0)
    {
        MoveObject(door2,-1470.028564, 2623.604492, 59.073196, 3.5);
        return 1;
    }
Strange , seems everyone can use it, and u sayd that only admins...:\
GJ anyway
Ok i added
Код:
if(IsPlayerAdmin(playerid));
So the new update needs rcon login to use the commands.
What means GJ?
GJ = Great Job?
Reply


Messages In This Thread
[MAP]Admin House - by RaZZoR - 23.06.2008, 14:01
Re: [MAP]Admin House - by Zack9764 - 23.06.2008, 14:04
Re: [MAP]Admin House - by RaZZoR - 23.06.2008, 14:07
Re: [MAP]Admin House - by Yaheli_Faro - 23.06.2008, 15:26
Re: [MAP]Admin House - by cmg4life - 23.06.2008, 19:01
Re: [MAP]Admin House - by mihai_naidn - 23.06.2008, 19:02
Re: [MAP]Admin House - by Zh3r0 - 23.06.2008, 19:04
Re: [MAP]Admin House - by RaZZoR - 24.06.2008, 04:40
Re: [MAP]Admin House - by MasterAssasin - 24.06.2008, 05:03
Re: [MAP]Admin House - by RaZZoR - 24.06.2008, 05:04

Forum Jump:


Users browsing this thread: 1 Guest(s)