30.05.2009, 15:31
pawn Код:
forward Minigame();
new gSlots;
pawn Код:
public Minigame()
{
new string[64];
switch(random(5))
{
case 0:
{
GameTextForAll("~r~~h~~h~MINIGUN ~n~~y~~h~FIGHT", 3000, 3);
for(new i = 0; i < gSlots; i++)
{
if(!IsPlayerConnected(i))
continue;
GivePlayerWeapon(i, 38, 20);
}
}
case 1:
{
GameTextForAll("~r~~h~~h~ROCKET ~n~~y~~h~FIGHT", 3000, 3);
for(new i = 0; i < gSlots; i++)
{
if(!IsPlayerConnected(i))
continue;
GivePlayerWeapon(i, 35, 4);
}
}
case 2:
{
GameTextForAll("~r~~h~~h~CHAINSAW ~n~~y~~h~FIGHT", 3000, 3);
for(new i = 0; i < gSlots; i++)
{
if(!IsPlayerConnected(i))
continue;
GivePlayerWeapon(i, 9, 1);
}
}
case 3:
{
GameTextForAll("~r~~h~~h~GRENADE ~n~~y~~h~FIGHT", 3000, 3);
for(new i = 0; i < gSlots; i++)
{
if(!IsPlayerConnected(i))
continue;
GivePlayerWeapon(i, 16, 10);
}
}
case 4:
{
GameTextForAll("~r~~h~~h~FLAMETHROWER ~n~~y~~h~FIGHT", 3000, 3);
for(new i = 0; i < gSlots; i++)
{
if(!IsPlayerConnected(i))
continue;
GivePlayerWeapon(i, 37, 500);
}
}
}
}