27.04.2014, 05:08
pawn Код:
#include "a_samp"
#define DIALOG_TELEPORTS 1
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if ( response )
{
if( dialogid == DIALOG_TELEPORTS )
{
switch( listitem )
{
case 0: ShowPlayerDialog(playerid, 65, 2, "Stunts", "Abandoned Farm\nSan Fierro Beach\nLas Venturas Airport", "OK", "Cancel" );
case 1: ShowPlayerDialog(playerid, 66, 2, "Hotspots", "Abandoned Farm\nSan Fierro Beach\nLas Venturas Airport", "OK", "Cancel" );
case 2: ShowPlayerDialog(playerid, 67, 2, "Interiors", "A\nA\nA", "OK", "Cancel" );
case 3: ShowPlayerDialog(playerid, 65, 2, "Houses", "CJ's House(/cj)\nSan Fierro Beach\nLas Venturas Airport", "OK", "Cancel" );
case 4: ShowPlayerDialog(playerid, 65, 2, "Cities", "Los Santos\nSan Fierro\nLas Venturas\nLiberty City\nEl Quebrados", "OK", "Cancel" );
}
}
return 1;
}
if ( dialogid == 65 )
{
if ( response )
{
GameTextForPlayer(playerid, "~g~Abandoned Farm~n~~w~/af", 6000, 3 );
SetPlayerPos(playerid,-45.9522,-13.4273,5.6389 );
SetPlayerFacingAngle(playerid,245 );
SetPlayerInterior(playerid,0 );
}
return 1;
}
return 0;
}