16.02.2012, 16:49
doesn't work
NB : i have two teams so i want give pos to each team in each map how to do it ? thanks
pawn Код:
forward NextMap(maps);
public NextMap(maps)
{
Cmaps++;
if(maps>= Cmaps) Cmaps=0;
switch(maps)
{
case 0:{
for(new playerid; playerid<GetMaxPlayers(); playerid++)//this will loop through all you players
{
SetPlayerPos(playerid,2533.8667,2753.3320,10.8203);
SetPlayerFacingAngle(playerid,90.5278);//this is the 1st MAP
}
}
case 1:{
for(new playerid; playerid<GetMaxPlayers(); playerid++)
{
SetPlayerPos(playerid,2666.7036,2797.8311,17.6896);//this is the 2st MAP
}
//and you just continue like that..
}
}
}