08.03.2011, 12:01
But, if i have maked like this :
Then :
And then :
Then the first dialog responding, but the twice dont :S I cant undersand :S
pawn Код:
COMMAND:zombie(playerid, params[])
{
ShowPlayerDialog(playerid, 9990, DIALOG_STYLE_LIST, "{003399}Z{00FF66}ombies", "{6600CC}Zombie With Chainsaw\n{990033}Zombie With Knife\n{339933}Zombie With Dildo\n{FFCC33}Kill Zombie\n{CC66CC}Zombie Help","Next", "Cancel");
return 1;
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 9990)
{
if(response)
{
if(listitem == 0)//ZombieC
{
new Str[128];
ShowPlayerDialog(playerid, 9991,DIALOG_STYLE_INPUT,"Type ID!", Str, "Zombie","Cancel");
}
}
}
pawn Код:
if(dialogid == 9991)
{
if(response)
{
new knife;
new string[256];
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
if (sscanf( inputtext, "u", knife ) )
if(gsendid == INVALID_PLAYER_ID)return SendClientMessage(playerid, Color_Red, "{9999CC}Player not found!");
else
{
format(string,sizeof(string),"Admin %s {3333FF}has make | NEW CHAINSAW ZOMBIE |!{663333} Watch color on map!",PlayerName);
SendClientMessageToAll(COLOR_LIGHTBLUE,string);
format(string, sizeof(string), "~w~We have ~b~new~y~[]CHAINSAW ZOMBIE]");
GameTextForAll( string, 5000, 3 );
ResetPlayerWeapons(playerid);
GivePlayerWeapon(gsendid, 9, 999);
Zombie[ playerid ] = Create3DTextLabel("{33FF66}I'M{FF3300} CHAINSAW {6633FF}ZOMBIE.",-1,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer( Zombie[ playerid ], playerid, 0.0, 0.0, 0.7);
SetPlayerHealth(gsendid, 999);
SetPlayerColor(gsendid, 0xFF6600AA);
SetPlayerSkin(gsendid, 137);
Delete3DTextLabel( Knife[ playerid ] );
Delete3DTextLabel( Dildo[ playerid ] );
Delete3DTextLabel( Shovel[ playerid ] );
return 1;
}
}
}
return 0;
}