20.01.2011, 17:26
pawn Код:
new racestarted;
new InRace[MAX_PLAYERS];
pawn Код:
public OnPlayerSpawn(playerid)
{
if(racestarted == 0)
{
SetPlayerPos(playerid, 0.0, 0.0, 0.0);//put the XYZ Pos's 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;
}