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: Help (
/showthread.php?tid=555673)
Help -
TheSnicky - 08.01.2015
for(new k = 0; k < sizeof(KucaInfo); k++)
{
new kFile[80];
format(kFile, sizeof(kFile), KUCE_FILE, k);
if(fexist(kFile))
if(IsPlayerInRangeOfPoint(playerid, 5.0, KucaInfo[k][kUlazX], KucaInfo[k][kUlazY], KucaInfo[k][kUlazZ]))
{
SetPlayerCheckpoint(playerid, KucaInfo[k][kUlazX], KucaInfo[k][kUlazY], KucaInfo[k][kUlazZ], 2.0);
}
}
I did this OnPlayerUpdate but I want it to dissapear when I move away from the house, someone help?
Re: Help -
Sascha - 08.01.2015
you should use the tags [ c o d e ] or [ p a w n ] (and of [ / c o d e] and [ / p a w n ]) to show your code more reader friendly (ofc written without the spaces between)
pawn Код:
for(new k = 0; k < sizeof(KucaInfo); k++)
{
new kFile[80];
format(kFile, sizeof(kFile), KUCE_FILE, k);
if(fexist(kFile))
if(IsPlayerInRangeOfPoint(playerid, 5.0, KucaInfo[k][kUlazX], KucaInfo[k][kUlazY], KucaInfo[k][kUlazZ]))
{
SetPlayerCheckpoint(playerid, KucaInfo[k][kUlazX], KucaInfo[k][kUlazY], KucaInfo[k][kUlazZ], 2.0);
}
else
{
DisablePlayerCheckpoint(playerid);
}
}