27.07.2012, 18:50
Check for a coordinates on the fish command!
Example: Command using strcmp
Command using ZCMD:
Example: Command using strcmp
pawn Код:
if(!strcmp("/fish",cmdtext))
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300,11.8438))
{
SendClientMessage(playerid,0xFFFFFFFF,"You are not near the Fishing Area!");
}
else
{
//Your Code when he is at the fishing area.
}
return 1;
}
pawn Код:
COMMAND:fish(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300,11.8438))
{
SendClientMessage(playerid,0xFFFFFFFF,"You are not near the Fishing Area!");
}
else
{
//Your Code when he is at the fishing area.
}
return 1;
}