01.05.2010, 12:16
TOP
DEATH
DIALOG
I Edited it
pawn Код:
new Dweapons[MAX_PLAYERS];
pawn Код:
Dweapons[playerid] = 0;
pawn Код:
if(dialogid==DONATOR_DIALOG)
{
if(response)
{
if(Dweapons >= 3) SendClientMessage(0xFF0000AA, "You can only get items 3 times a spawn");
if(listitem==0)
{
GivePlayerWeapon(playerid, 28, 150);
Dweapons[playerid] ++;
return 1;
}
if(listitem==1)
{
GivePlayerWeapon(playerid, 30, 150);
Dweapons[playerid] ++;
return 1;
}
if(listitem==2)
{
GivePlayerWeapon(playerid, 26, 150);
Dweapons[playerid] ++;
return 1;
}
if(listitem==3)
{
GivePlayerWeapon(playerid, 32, 150);
Dweapons[playerid] ++;
return 1;
}
if(listitem==4)
{
GivePlayerWeapon(playerid, 29, 150);
Dweapons[playerid] ++;
return 1;
}
if(listitem==5)
{
GivePlayerWeapon(playerid, 27, 150);
Dweapons[playerid] ++;
return 1;
}
if(listitem==6)
{
GivePlayerWeapon(playerid,35,15);
Dweapons[playerid] ++;
return 1;
}
}