#1

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;
}
Reply
#2

try to make the radius bigger change the 7.0 to something bigger!
Reply
#3

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
Reply
#4

i set the range point to 150.0 but it not woking to
Reply
#5

I RESOVE THX
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)