04.11.2010, 22:35
pawn Код:
new Nasceremls[MAX_PLAYERS];
new Nasceremsf[MAX_PLAYERS];
new Tutorial[MAX_PLAYERS];
//=================================================================
public OnPlayerSpawn(playerid)
{
if(Nasceremls == 1)
{
SetPlayerPos(playerid, coordenada x, coordenada y, coordenada z);//Posicao nascer em los santos
}
if(Nasceremsf == 1)
{
SetPlayerPos(playerid, coordenada x, coordenada y, coordenada z);//Posicao nascer em san fierro
}
if(Tutorial[playerid] == 0)
{
ShowPlayerDialog(playerid, 1, "Selecione sua cidade", DIALOG_STYLE_MSGBOX, "Selecione abaixo sua cidade", "Los Santos", "San Fierro");
return 1;
}
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1)
{
if(listitem)
{
Nasceremls = 1;
Nasceremsf = 0;
//Aqui coloque o negocio que leva ao seu tutorial(Thug & cia TutTime = 5;)
}
else
{
Nasceremsf = 1;
Nasceremls = 0;
}
}
}

