Need help
#5

Quote:
Originally Posted by [M]xFire
Посмотреть сообщение
It's only possible in OnPlayerSpawn:
pawn Код:
public OnPlayerSpawn(playerid)
{
    if(racestarted == 0) {
    SetPlayerPos(playerid, 0.0, 0.0, 0.0);//put the params correct
    new vehicle = CreateVehicle(411, 0.0, 0.0, 0.0, 0.0, 1, 0, 100);//put the params correct
    PutPlayerInVehicle(playerid, vehicle, 0);
    InRace[playerid] = 1;
    }
    else {
    PlayerSpectatePlayer(playerid, playerid-1);
    return 1;
}
You can add more if you want..
Yes,but you forgot to tell him how to create the "InRace" and "racestarted".

Do this

pawn Код:
//AT THE TOP
new racestarted;
new InRace[MAX_PLAYERS];

public OnPlayerSpawn(playerid)
{
    if(racestarted == 0) {
    SetPlayerPos(playerid, 0.0, 0.0, 0.0);//put the params correct
    new vehicle = CreateVehicle(411, 0.0, 0.0, 0.0, 0.0, 1, 0, 100);//put the params correct
    PutPlayerInVehicle(playerid, vehicle, 0);
    InRace[playerid] = 1;
    }
    else {
    PlayerSpectatePlayer(playerid, playerid-1);
    return 1;
}
Reply


Messages In This Thread
Need help - by domceo1 - 20.01.2011, 16:50
Re: Need help - by domceo1 - 20.01.2011, 16:57
Re: Need help - by domceo1 - 20.01.2011, 17:12
Respuesta: Need help - by [M]xFire - 20.01.2011, 17:15
Re: Respuesta: Need help - by SkizzoTrick - 20.01.2011, 17:21
Re: Respuesta: Need help - by HyperZ - 20.01.2011, 17:26
Re: Respuesta: Need help - by SkizzoTrick - 20.01.2011, 17:28

Forum Jump:


Users browsing this thread: 1 Guest(s)