25.06.2018, 17:49
Hi. Have problem with command. When I use my command in right place - command working correct. But when I use command in random place, where player is not in range of point, server says my: Unknown command. How to make, that if I use that command in random place, server would not write unknown command, just nothing.
Код:
if(strcmp(cmdtext, "/eat", true)==0)
{
for(new x; x<places; x++)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0,PlesI[x][EnterPos][0],PlesI[x][EnterPos][1d],PlesI[x][EnterPos][2]))
{
new msg[1200];
format(msg,sizeof(msg),"{0099FF}[>>]{FFFFFF} %s text!",PlesI[x][vietospav]);
SetPlayerMapIcon(playerid, 73, PlesI[x][EnterPos][0],PlesI[x][EnterPos][1],PlesI[x][EnterPos][2], 6, 0, MAPICON_GLOBAL);
}
}
return 1;
}


