[FilterScript] FS:Gates - Dynamic Movable Gates System
#22

Quote:
Originally Posted by ParadiseRP
View Post
Why i can create only one gate

when i try to make antoher one its says

"you already created dynamic gate"

help me please
pawn Code:
CMD:placegate( playerid, params[] )
{

        if( isnull( params) )

            return SendClientMessage( playerid, -1, "Syntax: /placegate [password]" );

           

        if( !strval( params ) )

            return SendClientMessage( playerid, -1, "You need to input numbers." );

           

        if( IsPlayerInAnyVehicle( playerid ) )

            return SendClientMessage( playerid, -1, "You need to exit your vehicle." );

 
        // if you want to place more than 1 gate per player comment this code
        /*new szName[24];

        GetPlayerName( playerid, szName, 24 );

        for( new i = 0; i != MAX_GATES; i++ )

                if( GateInfo[i][gCreated] == 1 )

                        if( !strcmp( szName, GateInfo[i][gPlacedBy], true ) )

                            return SendClientMessage( playerid, -1, "You already placed a movable gate." );

                        else

                            continue;*/


 

        new Float:pPos[4];

        GetPlayerPos( playerid, pPos[0], pPos[1], pPos[2] );

        GetPlayerFacingAngle( playerid, pPos[3] );

        CreateGate( playerid, strval( params ), pPos[0], pPos[1], pPos[2], pPos[3] );

        SendClientMessage( playerid, -1, "You succesfully created a movable gate. Use /gopen or /gclose." );

 

        return 1;

}
Reply


Messages In This Thread
FS:Gates - Dynamic Movable Gates System - by Marricio - 26.05.2012, 18:00
Re: FS:Gates - Dynamic Movable Gates System - by se7evolution - 26.05.2012, 18:18
Re: FS:Gates - Dynamic Movable Gates System - by Marricio - 26.05.2012, 18:27
Re: FS:Gates - Dynamic Movable Gates System - by Infinity90 - 26.05.2012, 18:49
Re: FS:Gates - Dynamic Movable Gates System - by admantis - 26.05.2012, 19:13
Re: FS:Gates - Dynamic Movable Gates System - by Kathleen - 26.05.2012, 19:15
Re: FS:Gates - Dynamic Movable Gates System - by Madox123 - 27.05.2012, 11:52
Re: FS:Gates - Dynamic Movable Gates System - by Aleks7 - 27.05.2012, 12:40
Re: FS:Gates - Dynamic Movable Gates System - by Kathleen - 27.05.2012, 12:40
Re: FS:Gates - Dynamic Movable Gates System - by Я@жR - 27.05.2012, 16:09
Re: FS:Gates - Dynamic Movable Gates System - by JordanMaddox - 27.05.2012, 17:03
Re: FS:Gates - Dynamic Movable Gates System - by Marricio - 27.05.2012, 17:54
Re: FS:Gates - Dynamic Movable Gates System - by Я@жR - 27.05.2012, 18:45
Re: FS:Gates - Dynamic Movable Gates System - by Orhun_Kaya - 27.05.2012, 19:07
Re: FS:Gates - Dynamic Movable Gates System - by Darklom - 27.05.2012, 22:56
Re: FS:Gates - Dynamic Movable Gates System - by AndreSAMP - 27.05.2012, 22:57
Re: FS:Gates - Dynamic Movable Gates System - by AndreSAMP - 27.05.2012, 23:06
Re: FS:Gates - Dynamic Movable Gates System - by iFederal - 28.05.2012, 06:29
Re: FS:Gates - Dynamic Movable Gates System - by ParadiseRP - 28.05.2012, 09:20
Re: FS:Gates - Dynamic Movable Gates System - by AndreSAMP - 28.05.2012, 09:48
Re: FS:Gates - Dynamic Movable Gates System - by ParadiseRP - 28.05.2012, 10:00
Re: FS:Gates - Dynamic Movable Gates System - by Marricio - 28.05.2012, 11:01
Re: FS:Gates - Dynamic Movable Gates System - by AndreSAMP - 28.05.2012, 11:32
Re: FS:Gates - Dynamic Movable Gates System - by Geeboi_Mehdi - 28.05.2012, 18:10
Respuesta: Re: FS:Gates - Dynamic Movable Gates System - by Marricio - 28.05.2012, 20:53
Re: FS:Gates - Dynamic Movable Gates System - by $exy - 29.05.2012, 18:53
Re: FS:Gates - Dynamic Movable Gates System - by Marricio - 29.05.2012, 20:29
Re: FS:Gates - Dynamic Movable Gates System - by N0FeaR - 29.05.2012, 22:22
Re: FS:Gates - Dynamic Movable Gates System - by $exy - 30.05.2012, 14:56
Re: FS:Gates - Dynamic Movable Gates System - by $exy - 30.05.2012, 14:59
Re: FS:Gates - Dynamic Movable Gates System - by Genicide[HC4L] - 30.05.2012, 18:11
Re: FS:Gates - Dynamic Movable Gates System - by $exy - 30.05.2012, 18:37
Re: FS:Gates - Dynamic Movable Gates System - by Genicide[HC4L] - 30.05.2012, 19:10
Re: FS:Gates - Dynamic Movable Gates System - by $exy - 30.05.2012, 20:13
Respuesta: FS:Gates - Dynamic Movable Gates System - by Marricio - 30.05.2012, 20:19
Re: FS:Gates - Dynamic Movable Gates System - by Geeboi_Mehdi - 31.05.2012, 20:53
Re: FS:Gates - Dynamic Movable Gates System - by awsomedude - 31.05.2012, 21:19
Re: FS:Gates - Dynamic Movable Gates System - by DwayneVanKom - 16.09.2012, 12:53
Re: FS:Gates - Dynamic Movable Gates System - by ~Pawno~ - 05.10.2012, 11:04
Re: FS:Gates - Dynamic Movable Gates System - by davve95 - 06.10.2012, 18:30
Re: FS:Gates - Dynamic Movable Gates System - by TwTJustin - 08.12.2013, 01:40

Forum Jump:


Users browsing this thread: 7 Guest(s)