08.01.2015, 15:55
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?
{
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?