[pawn]public OnPlayerRequestClass(playerid, classid)
{
if(gTeam[playerid] == Civil) //Civil
{
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,\"Válassz a spawn helyekbõl\",\"Las Venturas \\nLos Santos \\nSan Fierro\",\"Választ\",\"\");
}
if(gTeam[playerid] == Cop) //Rendõr
{
ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,\"Válassz a spawn helyekbõl\",\"Las Venturas \\nLos Santos \\nSan Fierro\",\"Választ\",\"\");
}
return 1;
}[/pawn]
ll
ll
ll
[pawn]
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 1) // Dialog ID 1
{
{
if(listitem)
{
case 0:
{
SetPlayerPos(playerid,X,Y,Z);
SendClientMessage(playerid,\"Üdvözöllek Las Venturas-ban\");
}
case 1:
{
SetPlayerPos(playerid,X,Y,Z);
SendClientMessage(playerid,\"Üdvözöllek Los Santos-ban\");
}
case 2:
{
SetPlayerPos(playerid,X,Y,Z);
SendClientMessage(playerid,\"Üdvözöllek San Fierro-ban\");
}
}
}
return 1;
}
if(dialogid == 2)//Dialog ID 2
{
{
if(listitem)
{
case 0:
{
SetPlayerPos(playerid,X,Y,Z);
SendClientMessage(playerid,\"Üdvözöllek Las Venturas-ban\");
}
case 1:
{
SetPlayerPos(playerid,X,Y,Z);
SendClientMessage(playerid,\"Üdvözöllek Los Santos-ban\");
}
case 2:
{
SetPlayerPos(playerid,X,Y,Z);
SendClientMessage(playerid,\"Üdvözöllek San Fierro-ban\");
}
}
}
}
}[/pawn]