SA-MP Forums Archive
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=549892)



Help - BlackEvils - 09.12.2014

HI all what wrong in this ?
When i use /startstunt it say me every time you are not i a stunt zone
dcmd_Startstunt(playerid, params[])
{
#pragma unused params
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.843)
{
SetPlayerCheckpoint(playerid,1725.1915, 1453.2965, 10.3161, 10.0);
}
else
{
SendClientMessage(playerid,COLORE_ROSSO,"You are not in a stunt zone");
}
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
PlayerInfo[playerid][StuntPoints]++;
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid,COLORE_ROSSO,"You win + 1 Stunt Points");
return 1;
}


Re: Help - UltraScripter - 09.12.2014

try to make the radius bigger change the 7.0 to something bigger!


Re: Help - Josh_Main - 09.12.2014

pawn Код:
HI all what wrong in this ?
When i use /startstunt it say me every time you are not i a stunt zone
dcmd_Startstunt(playerid, params[])
{
#pragma unused params
if(IsPlayerInRangeOfPoint(playerid, 15.0, 2695.6880, -1704.6300, 11.843)
{
SetPlayerCheckpoint(playerid,1725.1915, 1453.2965, 10.3161, 10.0);
}
else
{
SendClientMessage(playerid,COLORE_ROSSO,"You are not in a stunt zone");
}
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
PlayerInfo[playerid][StuntPoints]++;
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid,COLORE_ROSSO,"You win + 1 Stunt Points");
return 1;
}
Make the range bigger on under IsPlayerInRangeOfPoint. Also make sure you're at the x, y, z position


Re: Help - BlackEvils - 09.12.2014

i set the range point to 150.0 but it not woking to


Re: Help - BlackEvils - 09.12.2014

I RESOVE THX