22.06.2011, 18:44
(
Последний раз редактировалось Michael@Belgium; 29.06.2011 в 12:15.
)
Well, my derby gamemode is almost finished. i worked a lot on it :S But i have 3 problems that i can't solve...
1) If someone dies the textdraw must change
SOLVED
2 & 3) Player dont spawn after round ends + spawning in another map don't work
I just don't get it:
Plz help me, if you need more info reply ^^
1) If someone dies the textdraw must change
SOLVED
2 & 3) Player dont spawn after round ends + spawning in another map don't work
I just don't get it:
pawn Код:
forward EndRound();
public EndRound()
{
if(EndRoundCounter == 0)
{
//...
NewMap();
return 1;
}
//....
}
forward NewMap();
public NewMap()
{
CreateNewVehicles();
foreach(Player,i)
{
DontSpectating(i);
//....
new OtherSpawn = random(20);
switch (OtherSpawn)
{
case 0:
{
new rand1=random(30);
if(!IsPlayerInVehicle(i, CarMap1[rand1])) return PutPlayerInVehicle(i, CarMap1[rand1], 0);
SendClientMessage(i, COLOR_ORANGE,"You were put randomly in a vehicle ...");
SendRconCommand("mapname Arena 666");
}
//i have 9 cases just like the first one but other "CarMap"
}
}
return 1;
}
stock DontSpectating(playerid)
{
PlayerIsSpectating[playerid] = 0;
TogglePlayerSpectating(playerid,0);
SpawnPlayer(playerid);
}