09.12.2014, 13:48
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;
}
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;
}