13.07.2013, 09:27
I have
If I do /agate somewhere random I get: "You are not in range of your garage". So working
If I do /agate at the coords when im in the team I get: "You are not in range of your garage", While I am.
If I do /agate while in the team I get: "You are not in range of your garage".
Help!
pawn Код:
CMD:agate(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 1953.0791,-2433.4441,13.5469, 2.5))
{
if(PlayerInfo[playerid][pTeam] == 1)
{
SendClientMessage(playerid, -1, "Test");
}
else
{
SendClientMessage(playerid, COLOR_ORANGE, "* You are not in: Team America!");
}
}
else
{
SendClientMessage(playerid, COLOR_ORANGE, "* You are not in range of your garage!");
}
return 1;
}
If I do /agate at the coords when im in the team I get: "You are not in range of your garage", While I am.
If I do /agate while in the team I get: "You are not in range of your garage".
Help!