#1

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?
Reply
#2

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);
}
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)