Random checkpoint problem, help please.
#2

pawn Код:
CMD:deliverpizza(playerid, params[])
{
    if(GetPVarInt(playerid, "InPizzaIntruder") && IsPlayerInRangeOfPoint(playerid, 10.0, 2124.5547,-1803.9019,13.5547))
    {
    new rand = random(sizeof(RandomCheckpoint));
    SetPlayerCheckpoint(playerid, RandomCheckpoint[rand][0], RandomCheckpoint[rand][1], RandomCheckpoint[rand][2],3);
    if (GetPVarType(playerid, "Delivering"))
    {
        SendClientMessage(playerid, COLOR_LIGHTRED, "You are already delivering pizzas !");
    }
    } else {
        SendClientMessage(playerid, COLOR_LIGHTRED, "You have to be in pizza boy intruder to use this command !");
    }
    return 1;
}
Reply


Messages In This Thread
Random checkpoint problem, help please. - by ZackBoolaro - 24.12.2012, 14:02
Re: Random checkpoint problem, help please. - by DaRk_RaiN - 24.12.2012, 14:08
Re: Random checkpoint problem, help please. - by ZackBoolaro - 24.12.2012, 14:16
Re: Random checkpoint problem, help please. - by B-Matt - 24.12.2012, 14:25
Re: Random checkpoint problem, help please. - by DaRk_RaiN - 24.12.2012, 14:28
Re: Random checkpoint problem, help please. - by ZackBoolaro - 24.12.2012, 14:48
Re: Random checkpoint problem, help please. - by nickdodd25 - 24.12.2012, 15:49

Forum Jump:


Users browsing this thread: 1 Guest(s)