11.10.2011, 13:32
Os hitmans ta conseguindo pedir varios pacotes. tipo eles pode pedir em varias quantidades. coloquei o ResetPlayerWeaponsEx(playerid); antes do giveplayerweapon. so que nao deu certo. espero que possam me ajudar
pawn Код:
if(OrderReady[i] > 0)
{
switch (OrderReady[i])
{
case 1:
{
GivePlayerWeapon(i, 24, 50); GivePlayerWeapon(i, 29, 300); GivePlayerWeapon(i, 33, 50); GivePlayerWeapon(i, 4, 1);
SetPlayerArmour(i, 100);
SetPlayerHealth(i, 100.0);
SendClientMessage(i, COLOR_LIGHTBLUE, "* Vocк pegou o seu pacote.");
}
case 2:
{
GivePlayerWeapon(i, 24, 100); GivePlayerWeapon(i, 29, 400); GivePlayerWeapon(i, 34, 100); GivePlayerWeapon(i, 4, 1);
SetPlayerArmour(i, 100);
SetPlayerHealth(i, 100.0);
SendClientMessage(i, COLOR_LIGHTBLUE, "* Vocк pegou o seu pacote.");
}
case 3:
{
GivePlayerWeapon(i, 24, 200); GivePlayerWeapon(i, 29, 500); GivePlayerWeapon(i, 33, 200); GivePlayerWeapon(i, 30, 200); GivePlayerWeapon(i, 4, 1);
SetPlayerArmour(i, 100);
SetPlayerHealth(i, 100.0);
SendClientMessage(i, COLOR_LIGHTBLUE, "* Vocк pegou o seu pacote.");
}
case 4:
{
GivePlayerWeapon(i, 24, 200); GivePlayerWeapon(i, 29, 500); GivePlayerWeapon(i, 34, 300); GivePlayerWeapon(i, 31, 300); GivePlayerWeapon(i, 4, 1); GivePlayerWeapon(i, 14, 1);
SetPlayerArmour(i, 100);
SetPlayerHealth(i, 100.0);
SendClientMessage(i, COLOR_LIGHTBLUE, "* Vocк pegou o seu pacote.");
}
case 5:
{
GivePlayerWeapon(i, 24, 400); GivePlayerWeapon(i, 29, 500); GivePlayerWeapon(i, 33, 400); GivePlayerWeapon(i, 30, 400); GivePlayerWeapon(i, 4, 1); GivePlayerWeapon(i, 14, 1);
SetPlayerArmour(i, 100);
SetPlayerHealth(i, 100.0);
SendClientMessage(i, COLOR_LIGHTBLUE, "* Vocк pegou o seu pacote.");
}
case 6:
{
GivePlayerWeapon(i, 24, 300); GivePlayerWeapon(i, 29, 500); GivePlayerWeapon(i, 34, 500); GivePlayerWeapon(i, 31, 500); GivePlayerWeapon(i, 4, 1); GivePlayerWeapon(i, 14, 1);
SetPlayerArmour(i, 100);
SetPlayerHealth(i, 100);
SendClientMessage(i, COLOR_LIGHTBLUE, "* Vocк pegou o seu pacote.");
}
case 7:
{
GivePlayerWeapon(i, 24, 300); GivePlayerWeapon(i, 29, 500); GivePlayerWeapon(i, 34, 500); GivePlayerWeapon(i, 30, 500); GivePlayerWeapon(i, 4, 1); GivePlayerWeapon(i, 14, 1);
SetPlayerArmour(i, 100);
SetPlayerHealth(i, 100);
SendClientMessage(i, COLOR_LIGHTBLUE, "* Vocк pegou o seu pacote.");
}
}
OrderReady[i] = 0;