Someone help me out.
#1

I got this:

pawn Код:
#include <a_samp>

new Float:RandomCheckpoints[][3] =
{
    { x, y, z},
    { x, y, z},
    { x, y, z},
    { x, y, z},
    { x, y, z},
    { x, y, z}

};
new IsMoneyHunting[MAX_PLAYERS];

public OnPlayerSpawn(playerid)
{
    IsMoneyHunting[playerid] = 0;
    SetPlayerCheckpoint(playerid, x,y,z, 3.0);//I normaly streamer plug
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    GameTextForPlayer(playerid,"~r~money hunt~n~type /start to enter",3000,3);
    return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
    Winner(playerid);
    DisablePlayerRaceCheckpoint(playerid);
    PlayerPlaySound(playerid, 1138, 0.0, 0.0, 10.0);
    IsMoneyHunting[playerid] = 0;
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/start", cmdtext, true, 10) == 0)
    {
        GameTextForPlayer(playerid,"~g~moneyhunt started~n~get to the red marker",3000,3);
        new randcheck = random(sizeof(RandomCheckpoints));
        SetPlayerRaceCheckpoint(playerid,0,RandomCheckpoints[randcheck][0],RandomCheckpoints[randcheck][1],RandomCheckpoints[randcheck][2],0,0,0,8);
        IsMoneyHunting[playerid] = 1;
        return 1;
    }
    return 0;
}
forward Winner(playerid);
public Winner(playerid)
{
     //Blah Blah Blah
     return 1;
}
Its working. But how can i make it so more than 1 player use it at a time.

Peace...
Reply


Messages In This Thread
Someone help me out. - by Stigg - 21.02.2011, 22:38
Re: Someone help me out. - by Stigg - 21.02.2011, 23:12
Re: Someone help me out. - by maramizo - 22.02.2011, 00:04
Re: Someone help me out. - by Stigg - 22.02.2011, 00:13
Re: Someone help me out. - by maramizo - 22.02.2011, 00:22
Re: Someone help me out. - by Stigg - 22.02.2011, 00:31
Re: Someone help me out. - by maramizo - 22.02.2011, 00:34
Re: Someone help me out. - by Stigg - 22.02.2011, 00:36

Forum Jump:


Users browsing this thread: 1 Guest(s)