Quote:
Originally Posted by Glad2BeHere
pawn Код:
//for player in range of the point u want, correct coding
//enter if(IsPlayerInRangeOfPoint(playerid, 10,1483.69995117,-1750.09997559,15.30000019))
// exit if(IsPlayerInRangeOfPoint(playerid,10, 1478.50000000,-1750.19995117,15.30000019))
pawn Код:
//to do it anywhere, remove;
//enter if(IsPlayerInRangeOfPoint(playerid, 10,1483.69995117,-1750.09997559,15.30000019))
// exit if(IsPlayerInRangeOfPoint(playerid,10, 1478.50000000,-1750.19995117,15.30000019))
|
I still can't seem to fix this, and I can't really find out the difference between your two code scripts you posted. Are you saying I need to change my /enter and /exit command to this?:
PHP код:
CMD:enter(playerid, params[])
{
IsPlayerInRangeOfPoint(playerid, 3,1481.0547,-1772.0500,18.7958); //CityHallEntrance
IsPlayerInRangeOfPoint(playerid,3, 384.808624,173.804992,1008.382812);
return 1;
}
CMD:exit(playerid, params[])
{
IsPlayerInRangeOfPoint(playerid, 3,384.808624,173.804992,1008.382812);
IsPlayerInRangeOfPoint(playerid,3, 1481.0547,-1772.0500,18.7958);
return 1;
}
If so, these commands still don't work. Am I doing somthing wrong?