Mission System
#6

That would be one way using arrays
pawn Код:
CreateRandomMissionCheckpoint(playerid, Float: size) {
    static const
        Float: sData[][] = {
            {0.0, 1.0, 2.0},
            {3.0, 4.0, 5.0}
    };
    new
        rand = random(sizeof sData)
    ;
    if(SetPlayerCheckpoint(playerid, sData[rand][0], sData[rand][1], sData[rand][2], size)) {
        return rand;
    }
    return -1;
}
The other way would be using a switch statment and putting the cordinates in SetPlayerCheckpoint directly
Reply


Messages In This Thread
Mission System - by AnonScripter - 07.11.2013, 08:22
Re: Mission System - by DaniceMcHarley - 07.11.2013, 10:12
Re: Mission System - by AnonScripter - 07.11.2013, 19:50
Re: Mission System - by Zex Tan - 07.11.2013, 20:03
Re: Mission System - by AnonScripter - 07.11.2013, 20:09
AW: Mission System - by Nero_3D - 07.11.2013, 20:18
Re: Mission System - by Lajko1 - 07.11.2013, 20:18

Forum Jump:


Users browsing this thread: 1 Guest(s)