03.06.2012, 22:23
Ok, So I tried spawning in 2 different places but it spawns both teams in one spot!
(NOTE: using "ForceClassSelection(playerid);" when they connect(using a dialog to select team also) causes them to spawn in blueberry)
OnPlayerSpawn:
Dialog_Team:
(NOTE: using "ForceClassSelection(playerid);" when they connect(using a dialog to select team also) causes them to spawn in blueberry)
OnPlayerSpawn:
pawn Код:
switch(CurrentMap)
{
case 0:// Map 1
{
if(gTeam[playerid] == Swat) {//Team 1 functions
SetPlayerColor(playerid, COLOR_PURPLE);
SetPlayerPos(playerid, -1294.2490,2570.6985,85.7764);//Set the postion for the players for map 1
SetPlayerFacingAngle(playerid, 182.3150);//Set facing angle of players for map 1
SetPlayerInterior(playerid, 0);
}
if(gTeam[playerid] == Terro) {//Team 2 functin
SetPlayerColor(playerid, COLOR_RED);
SetPlayerPos(playerid, -1304.9689,2464.9429,87.7562);//Set the postion for the players for map 1
SetPlayerFacingAngle(playerid, 359.8622);//Set facing angle of players for map 1
SetPlayerInterior(playerid, 0);
}
}
}
pawn Код:
case DIALOG_TEAM:
{
if(response)
{
switch(listitem)
{
case 0:
{
TogglePlayerSpectating(playerid, 0);
SetPlayerTeam(playerid, 1);
SendClientMessage(playerid, COLOR_GREY, "|- Objective: Eliminate all Terrorists -|");
SetPlayerToSpawn(playerid);
}
case 1:
{
TogglePlayerSpectating(playerid, 0);
SetPlayerTeam(playerid, 2);
SendClientMessage(playerid, COLOR_GREY, "|- Objective: Eliminate all S.W.A.T before they destroy your operation! -|");
SetPlayerToSpawn(playerid);
}
}
}
}