22.08.2011, 15:27
pawn Code:
forward NewMap();
public NewMap()
{
new OtherSpawn = random(12);//i have 12 different maps, so 12 randoms
foreach(Player,i) { //so everyone must do this ...
DontSpectating(i);
SetPlayerColor(i,COLOR_GREEN);
CreateNewVehicles();//ignore
SetPVarInt(i,"Missiles",0);
PlayerJustConnected[i] = 0;
switch (OtherSpawn)//switch statement...
{
case 0://map 1
{
print("Went to map 1");
new rand1=random(30);
PutPlayerInVehicle(i, CarMap1[rand1], 0);
SendClientMessage(i, COLOR_ORANGE,"You were put randomly in a vehicle ...");
SendRconCommand("mapname Arena 666");
TextDrawSetString(Textdraw6,"~g~ Arena 666 ~w~ by ~y~ Michael@Belgium");
}
//@ above: this i have untill "case 11:". Also a print, new rand1,rand2,...; Putplayerinvehicle ... etc.
}
TextDrawShowForAll(Textdraw6);//idk if that must be here ...
}
return 1;
}