I need help with Robing system :P - 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: I need help with Robing system :P (
/showthread.php?tid=395290)
I need help with Robing system :P -
dr.lozer - 25.11.2012
Hi guyz, my problem is when i goto Zero's Shop it doesn't Set my checkpoint! i dont know why
here is the code
pawn Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
if(newinteriorid == 6) {
if(IsPlayerInRangeOfPoint(playerid,50.0,-2239.7114,129.9761,1035.4141)) {
SetPlayerCheckpoint(playerid, -2219.3125,135.7488,1035.6328,3);
}else {
DisablePlayerCheckpoint(playerid);
}
}
return 1;
}
any help plz ???
Re: I need help with Robing system :P -
DaRk_RaiN - 25.11.2012
The distance of the check point is not within the range of IsPlayerInRangeOfPoint.
Try to make the distance in IsPlayerInRangeOfPoint further, should fix it, btw make sure the x y z are right.
Re: I need help with Robing system :P -
dr.lozer - 26.11.2012
Quote:
Originally Posted by DaRk_RaiN
The distance of the check point is not within the range of IsPlayerInRangeOfPoint.
Try to make the distance in IsPlayerInRangeOfPoint further, should fix it, btw make sure the x y z are right.
|
I use the IsPlayerInRangeOfPoint's X,Y,Z near door of shop when we spawn in Zero Shop so it should SetCheckpoint Me :P