5 errors. (again, this time with /b)
#24

this should work i think

pawn Код:
if ( !strcmp ( cmdtext , "/b" , true , 2 ) && cmdtext [ 2 ] == ' ' )
{
    if ( strlen ( cmdtext ) == 3 )
    {
        SendClientMessage ( playerid , 0xFF0000FF , "USAGE: /b [local ooc chat]" ) ;
        return 1 ;
    }
    new
        plName [ MAX_PLAYER_NAME ] ,
        str [ 128 ] ,
        Float:p_x,
        Float:p_y,
        Float:p_z,
        ii
    ;
    GetPlayerPos ( playerid , p_x , p_y , p_z ) ;
    GetPlayerName ( playerid , plName , MAX_PLAYER_NAME ) ;
    format ( str , 128 , "[OOC-Chat] %s: %s" , plName , cmdtext [ 3 ] ) ;
    for ( ii = 0 ; ii < MAX_PLAYERSEX ; ii++ )
    {
        if ( IsPlayerConnected ( ii ) )
        {
            if ( IsPlayerInRangeOfPoint ( ii , 20 , p_x , p_y , p_z ) )
            {
                SendClientMessage ( ii , COLOR_FADE1 , str ) ;
            }
        }
    }
    return 1;
}
yea i didn't used ProxDetector as i don't have it nor i don't like it :P
Reply


Messages In This Thread
5 errors. (again, this time with /b) - by davelord - 02.04.2011, 12:05
Re: 5 errors. (again, this time with /b) - by Jeffry - 02.04.2011, 12:12
Re: 5 errors. (again, this time with /b) - by xir - 02.04.2011, 12:12
Re: 5 errors. (again, this time with /b) - by davelord - 02.04.2011, 12:19
Re: 5 errors. (again, this time with /b) - by Jeffry - 02.04.2011, 12:26
Re: 5 errors. (again, this time with /b) - by davelord - 02.04.2011, 12:27
Re: 5 errors. (again, this time with /b) - by Jeffry - 02.04.2011, 12:41
Re: 5 errors. (again, this time with /b) - by davelord - 02.04.2011, 12:52
Re: 5 errors. (again, this time with /b) - by Jeffry - 02.04.2011, 13:04
Re: 5 errors. (again, this time with /b) - by davelord - 02.04.2011, 13:06
Re: 5 errors. (again, this time with /b) - by SchurmanCQC - 02.04.2011, 13:08
Re: 5 errors. (again, this time with /b) - by bijoyekuza - 02.04.2011, 13:08
Re: 5 errors. (again, this time with /b) - by davelord - 02.04.2011, 13:09
Re: 5 errors. (again, this time with /b) - by Jeffry - 02.04.2011, 13:11
Re: 5 errors. (again, this time with /b) - by davelord - 02.04.2011, 13:12
Re: 5 errors. (again, this time with /b) - by SchurmanCQC - 02.04.2011, 13:14
Re: 5 errors. (again, this time with /b) - by Jeffry - 02.04.2011, 13:16
Re: 5 errors. (again, this time with /b) - by davelord - 02.04.2011, 13:23
Re: 5 errors. (again, this time with /b) - by Jeffry - 02.04.2011, 13:26
Re: 5 errors. (again, this time with /b) - by davelord - 02.04.2011, 13:34
Re: 5 errors. (again, this time with /b) - by SchurmanCQC - 02.04.2011, 13:36
Re: 5 errors. (again, this time with /b) - by davelord - 02.04.2011, 13:40
Re: 5 errors. (again, this time with /b) - by Jeffry - 03.04.2011, 16:53
Re: 5 errors. (again, this time with /b) - by SlashPT - 03.04.2011, 17:10
Re: 5 errors. (again, this time with /b) - by admantis - 03.04.2011, 17:29
Re: 5 errors. (again, this time with /b) - by SlashPT - 03.04.2011, 17:51

Forum Jump:


Users browsing this thread: 1 Guest(s)