02.09.2016, 20:18
pawn Код:
stock ResetAllInfo(playerid)
{
KillTimer(healthUpdaterHunger[playerid]);
KillTimer(healthUpdaterThirst[playerid]);
KillTimer(progressUpdaterHunger[playerid]);
KillTimer(progressUpdaterThirst[playerid]);
KillTimer(Bleedingtimer[playerid]);
TextDrawHideForPlayer(playerid,txtTimeDisp);
TextDrawHideForPlayer(playerid, LegBroken[playerid]);
TextDrawHideForPlayer(playerid,Textdraw0);
TextDrawHideForPlayer(playerid,Textdraw1);
TextDrawHideForPlayer(playerid,Textdraw2);
return 1;
}
stock ForceDrop(playerid)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
for(new i; i < 99; i++)
{
if(PlayerHasItem(playerid, ItemInfo[i][Item_Name]))
{
CreateDrop(ItemInfo[i][Item_ID], X+random(3), Y+random(5), Z);
}
}
return 1;
}