07.12.2010, 03:06
you have done this wrong i belive, try this
pawn Код:
if(dialogid == 20)
{
switch(listitem)
{
case 0:
{
GivePlayerWeapon(playerid,4,1);
GivePlayerWeapon(playerid,22,90);
GivePlayerWeapon(playerid,25,50);
GivePlayerWeapon(playerid,29,120);
GivePlayerWeapon(playerid,34,15);
GivePlayerWeapon(playerid,31,260);
GivePlayerWeapon(playerid,46,1);
GivePlayerWeapon(playerid,39,10);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Uzeli ste opremu br. jedan!");
}
case 1:
{
GivePlayerWeapon(playerid,24,90);
GivePlayerWeapon(playerid,27,120);
GivePlayerWeapon(playerid,28,190);
GivePlayerWeapon(playerid,30,260);
GivePlayerWeapon(playerid,33,150);
GivePlayerWeapon(playerid,41,1000);
GivePlayerWeapon(playerid,44,1);
GivePlayerWeapon(playerid,43,50);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Uzeli ste opremu br. dva!");
}
case 2:
{
SetPlayerHealth(playerid, 120);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Pojeo si nekoliko cufti..Sad si sit!");
}
case 3:
{
SetPlayerArmour(playerid, 100);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Uzeli ste i obukli Pancir!");
}
case 4:
{
GivePlayerWeapon(playerid,17,17);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Odabrali ste odelo iz ormara i obukli ga!");
}
}
return 1;
}
}
}