02.06.2012, 15:38
Ok, This is my dialog(which is called right after they login);
And then they press "Army" or "terrorist" nothing happens, you stay in spectator mode. (When they connect they are on spectator mode, and under OnPlayerSpawn Spectator mode is disabled also, nothing happens. I also tried adding it inside this dialog and no results.)
pawn Код:
case DIALOG_MAP1: {
if(response)
switch(dialogid)
{
case 0:
{
gTeam[playerid] = Terrorist;
SpawnPlayer(playerid);
SetPlayerPos(playerid, -1302.7939,2462.9321,87.8614);
SendClientMessage(playerid, COLOR_GREY, "|- You are now on the Terrorist team, good luck! -|");
}
case 1:
{
gTeam[playerid] = Army;
SpawnPlayer(playerid);
SetPlayerPos(playerid, -1283.8940,2576.5583,87.3921);
SendClientMessage(playerid, COLOR_GREY, "|- You are now on the Army team, good luck! -|");
}
}
if(!response)
{
SendClientMessage(playerid, COLOR_GREY, "You have to choose a team before spawning");
Kick(playerid);
}
}