02.07.2012, 09:22
pawn Код:
switch(dialogid)
{
case 1:
{
if(!response)
{
SendClientMessage(playerid, 0xFF0000FF, "You Canceled");
return 1;
}
switch(listitem)
{
case 0:
{
SetPlayerSkin(playerid,280);
SendClientMessage(playerid,COLOR_SEAGREEN,"Welcome to Duty USPD Officer");
}
case 1:
{
SetPlayerSkin(playerid,281);
SendClientMessage(playerid,COLOR_SEAGREEN,"Welcome to Duty USPD Officer");
}
case 2:
{
SetPlayerSkin(playerid,282);
SendClientMessage(playerid,COLOR_SEAGREEN,"Welcome to Duty USPD Officer");
}
}
}
case 253:
{
if(!response)
{
SendClientMessage(playerid, 0xFF0000FF, "You Canceled");
return 1;
}
switch(listitem)
{
case 0:
{
// Silence $500
}
case 1:
{
// AK-47 $2000
}
case 2:
{
// M4 $3000
}
// add case 3, case 4 etc.
}
}
}