20.01.2011, 17:21
Quote:
It's only possible in OnPlayerSpawn:
pawn Код:
|
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;
}