help cmd
#4

Код:
CMD:placegate( playerid, params[] )
{
    if(PlayerInfo[playerid][Level] >= 4)
    {
        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." );

        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
help cmd - by nbx2000 - 11.08.2018, 06:33
Re: help cmd - by Mike861 - 11.08.2018, 06:50
Re: help cmd - by nbx2000 - 11.08.2018, 07:03
Re: help cmd - by Variable™ - 11.08.2018, 07:16
Re: help cmd - by CaptainBoi - 11.08.2018, 07:19
Re: help cmd - by Sew_Sumi - 11.08.2018, 10:48
Re: help cmd - by Mike861 - 11.08.2018, 10:54
Re: help cmd - by nbx2000 - 12.08.2018, 06:56
Re: help cmd - by AlexMSK - 12.08.2018, 07:02

Forum Jump:


Users browsing this thread: 1 Guest(s)