SetPlayerCheckpoint
#7

Quote:
Originally Posted by Wesley221
Посмотреть сообщение
pawn Код:
new Float:Randommission[][4] =
{
    {405.7452,2442.8865,16.5000,RADIUSHERE},
    {1664.6863,1337.0352,10.7705,RADIUSHERE},
    {-1441.6310,-206.0983,6.0000,RADIUSHERE},
    {1921.9943,-2235.5515,13.5469,RADIUSHERE}
};

COMMAND:mission(playerid, params[])
{
    new rand = random(sizeof(Randommission));
    SetPlayerCheckpoint(playerid, Randommission[rand][0], Randommission[rand][1],Randommission[rand][2],Randommission[rand][3]);
    return 1;
}
Change the 'RADIUSHERE' with the radius you want. That will be Randommission[#][3] like you've already created above
Ahhh thank you very much!
Reply


Messages In This Thread
SetPlayerCheckpoint - by cruising - 16.11.2011, 18:23
AW: SetPlayerCheckpoint - by Babul - 16.11.2011, 18:27
Re: AW: SetPlayerCheckpoint - by cruising - 16.11.2011, 18:29
Re: SetPlayerCheckpoint - by Joshb93 - 16.11.2011, 18:31
Re: SetPlayerCheckpoint - by cruising - 16.11.2011, 18:39
Re: SetPlayerCheckpoint - by Wesley221 - 16.11.2011, 18:47
Re: SetPlayerCheckpoint - by cruising - 16.11.2011, 18:54

Forum Jump:


Users browsing this thread: 1 Guest(s)