IsPlayerInRangeOfPoint Help. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: IsPlayerInRangeOfPoint Help. (
/showthread.php?tid=349291)
IsPlayerInRangeOfPoint Help. -
tiernantheman - 08.06.2012
Hey guys, I have a problem when I execute this command it says im not near the trucker factory when I am in the spot to take the job. Any help would be great thanks. Here the code:
pawn Код:
YCMD:truckerjob(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, -1484.2582, 2653.3225, 55.8359)) return SendClientMessage(playerid, COLOR_GREEN, "You are not near the trucker factory in El Quadbrados!");
{
if(PlayerInfo[playerid][Job] == 2)
{
SendClientMessage(playerid, COLOR_GREEN, "Congradulations! You have become a trucker! Use /help to see what commands you can use.");
}
return 1;
}
}
Re: IsPlayerInRangeOfPoint Help. -
leonardo1434 - 08.06.2012
pawn Код:
YCMD:truckerjob(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, -1484.2582, 2653.3225, 55.8359))
{
if(PlayerInfo[playerid][Job] == 2)
{
SendClientMessage(playerid, COLOR_GREEN, "Congradulations! You have become a trucker! Use /help to see what commands you can use.");
}
}
else
{
SendClientMessage(playerid, COLOR_GREEN, "You are not near the trucker factory in El Quadbrados!");
}
return 1;
}