03.05.2017, 10:11
PHP код:
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");
}
}
}
}