if(dialogid == D_SET) { if (response) switch (listitem) { case 0: { PlayerInfo[ playerid ][ SET ] = 0; GiveSet(playerid, 0); SendClientMessage(playerid, -1, "You got this set"); } ShowPlayerDialog( playerid, D_SET, DIALOG_STYLE_LIST, "Set", "Standard Set", "Select", "Cancel" ); } } }
if(dialogid == D_TELE) { if(response) { if(listitem == 0) { SetPlayerPos(playerid, 2048.1663,-2261.8228,18.5524); SetPlayerFacingAngle(playerid, 147.1641); SetPlayerInterior(playerid,0); SetCameraBehindPlayer(playerid); SendClientMessage(playerid, -1, "Teleported"); } } }
if(dialogid == D_SET)
{
if (response)
{
switch (listitem)
{
case 0:
{
PlayerInfo[ playerid ][ SET ] = 0;
GiveSet(playerid, 0);
SendClientMessage(playerid, -1, "You got this set");
}
ShowPlayerDialog( playerid, D_SET, DIALOG_STYLE_LIST, "Set", "Standard Set", "Select", "Cancel" );
}
}
}
if(dialogid == D_TELE)
{
if(response)
{
switch (listitem)
{
case 0:
{
SetPlayerPos(playerid, 2048.1663,-2261.8228,18.5524);
SetPlayerFacingAngle(playerid, 147.1641);
SetPlayerInterior(playerid,0);
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid, -1, "Teleported");
}
}
}
}
PHP код:
|
ShowPlayerDialog(playerid, D_TELE, DIALOG_STYLE_TABLIST_HEADERS
if(dialogid == D_TELE) { if(response) { if(listitem == 0) { ShowPlayerDialog(playerid, D_TELE+1, DIALOG_STYLE_TABLIST_HEADERS, "TELES", "Teleports\tCommand\nLos Santos Airport", "Port", "Cancel"); }
ShowPlayerDialog( playerid, D_SET, DIALOG_STYLE_LIST, "Set", "Standard Set", "Select", "Cancel" );
CMD:tele( playerid ) { ShowPlayerDialog(playerid, D_TELE, DIALOG_STYLE_TABLIST_HEADERS, "TELE", "Teleports\tCommands\nStunt Zones\t(/stunt)", "Select", "Close"); return 1; } if(dialogid == D_TELE) { if(response) { if(listitem == 0) { ShowPlayerDialog(playerid, D_TELE+1, DIALOG_STYLE_TABLIST_HEADERS, "STUNTS", "Teleport\tCommand\nLos Santos Airport\t(/lsa)", "Port", "Cancel"); } return 1; } } if(dialogid == D_TELE+1) { if(response) { if(listitem == 0) { SetPlayerPos(playerid, 2048.1663,-2261.8228,18.5524); SetPlayerFacingAngle(playerid, 147.1641); SetPlayerInterior(playerid,0); SetCameraBehindPlayer(playerid); SendClientMessage(playerid, -1, "Teleported!"); } } } if(dialogid == D_SET) { if (response) { switch (listitem) { case 0: { PlayerInfo[ playerid ][ SET ] = 0; GiveWeaponSet(playerid, 0); SendClientMessage(playerid, -1, "You choose this set"); } } } }