08.09.2013, 14:52
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/jdm", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid, 6969, "Jefferson Motel DM", DIALOG_STYLE_LIST, "Police\nRobbers", "Choose", ""); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == 6969) { if(response) { if(listitem == 0) { SetPlayerPos(playerid, 2216.3401,-1150.5100,1025.7969); GivePlayerWeapon(playerid, 24, 500); GivePlayerWeapon(playerid, 31, 2500); GivePlayerWeapon(playerid, 9, 1); SetPlayerArmour(playerid, 100); SetPlayerHealth(playerid, 100); SetPlayerSkin(playerid, 285); } if(listitem == 1) { SetPlayerPos(playerid, 2216.3401,-1150.5100,1025.7969); GivePlayerWeapon(playerid, 24, 500); GivePlayerWeapon(playerid, 31, 2500); GivePlayerWeapon(playerid, 9, 1); SetPlayerArmour(playerid, 100); SetPlayerHealth(playerid, 100); SetPlayerSkin(playerid, 8); } } return 1; } return 0; }