PlayerToPoint
#6

Use the code you firstly posted^^, and put
pawn Код:
return true;
or
pawn Код:
return 1;
At end of your commands. Like:
pawn Код:
CMD:something( playerid, params[ ] )
{
    SendClientMessage( playerid, 0xAAAAAA, "BlaBla" );
    return 1; // This
}
Or shorter:
pawn Код:
CMD:something( playerid, params[ ] )
{
    return SendClientMessage( playerid, 0xAAAAAA, "BlaBla" );
}
But you need to return something else than 0. OnPlayerCommandText will return 0 if you don't put any return upthere.

And for IsPlayerInRangeOfPoint:
pawn Код:
if( IsPlayerInRangeOfPoint( playerid, 5.0, 0.0, 0.0, 0.0 ) )
{
    SendClientMessage( playerid, 0xAAAAAA, "You are in range of 5 meters in the position: X: 0.0, Y: 0.0 and Z: 0.0" );
}
else
{
    SendClientMessage( playerid, 0xAAAAAA, "You are not in range of 5 meter for the X: 0.0, Y: 0.0 and Z: 0.0" );
}
Reply


Messages In This Thread
PlayerToPoint - by NewbBeginner - 12.02.2011, 10:40
Re: PlayerToPoint - by Cypress - 12.02.2011, 10:58
Re: PlayerToPoint - by Hiddos - 12.02.2011, 10:59
Re: PlayerToPoint - by Mean - 12.02.2011, 11:02
Re: PlayerToPoint - by NewbBeginner - 12.02.2011, 15:51
Re: PlayerToPoint - by Mean - 12.02.2011, 15:54
Re: PlayerToPoint - by NewbBeginner - 12.02.2011, 15:57
Re: PlayerToPoint - by Mean - 12.02.2011, 15:59
Re: PlayerToPoint - by NewbBeginner - 12.02.2011, 16:29
Re: PlayerToPoint - by Hiddos - 12.02.2011, 16:31

Forum Jump:


Users browsing this thread: 3 Guest(s)