Function Near other players
#8

Quote:
Originally Posted by Christoffer
Посмотреть сообщение
Thosen't this just make the stars pop up on the player typing the /siren command? Shouldn't it be like this?

pawn Код:
GameTextForPlayer(playerid, "~r~]~b~]", 3000, 1);
my mistake, sorry about that:


when in car:

pawn Код:
if (strcmp("/siren", cmdtext, true, 6) == 0)
    {
        if( IsPlayerInAnyVehicle( playerid ) ) // in any vehicle
        {
            new
                Float:Coord[ 3 ];
            GetPlayerPos( playerid, Coord[ 0 ], Coord[ 1 ], Coord[ 2 ] );
            for( new i = 0; i < MAX_PLAYERS; i++ )
            {
                if( IsPlayerConnected( i ) )
                {
                    if( IsPlayerInRangeOfPoint( i, 20.0, Coord[ 0 ], Coord[ 1 ], Coord[ 2 ] ) )
                    {
                        GameTextForPlayer( i, "~r~]~b~]", 3000, 1 );
                    }
                }
            }
        }
        return 1;
    }
Reply


Messages In This Thread
Function Near other players - by Christoffer - 06.01.2013, 01:47
Re: Function Near other players - by InActtive™ - 06.01.2013, 03:49
Re: Function Near other players - by Christoffer - 06.01.2013, 16:03
Re: Function Near other players - by nilanjay - 06.01.2013, 16:11
Re: Function Near other players - by ancezas - 06.01.2013, 16:14
Re: Function Near other players - by Christoffer - 06.01.2013, 17:08
Re: Function Near other players - by Christoffer - 06.01.2013, 17:12
Re: Function Near other players - by ancezas - 06.01.2013, 17:20
Respuesta: Function Near other players - by felipe123456 - 06.01.2013, 17:25
Respuesta: Re: Function Near other players - by felipe123456 - 06.01.2013, 17:29

Forum Jump:


Users browsing this thread: 2 Guest(s)