Help please.
#1

Im currently working on a roof dm script. It will be placed on a roof with random spawns etc.

If many people are on the roof fighting, it will be spawnkills all the time. So I'm wondering, can you do so at OnPlayerSpawn, the player spawns at a safe place, non controllabe (TogglePlayerControllable, I know) and then after 3 seconds you spawn up on the roof with random spawns, I got the random spawn code..

This I got right now,:
pawn Код:
const MAX_POSITIONS = 2;
    static Float:Positions[MAX_POSITIONS][4] =
    {
        {2402.6143, -2029.0471, 21.8350, 89.8074},
        {2367.6816,-2024.3185,21.8350,269.1808}
    }, bool:taken[MAX_POSITIONS];
    new freePos;
    for(; freePos < MAX_POSITIONS; freePos++)
        if(!taken[freePos]) break;
    if(freePos == MAX_POSITIONS) return 1; //no free positions left
    SetPlayerPos(playerid, Positions[freePos][0], Positions[freePos][1], Positions[freePos][2]);
    SetPlayerFacingAngle(playerid, Positions[freePos][3]);
    taken[freePos] = true;
    return 1;
Is this possible? If so please teach me or give me code.

Thank you
Reply


Messages In This Thread
Help please. - by Klutty - 12.05.2009, 14:28
Re: Help please. - by Weirdosport - 12.05.2009, 14:48
Re: Help please. - by Klutty - 12.05.2009, 14:56

Forum Jump:


Users browsing this thread: 2 Guest(s)