21.01.2017, 14:18
Acredito que seja nessa parte, mas estou com dificuldade em saber on inserir:
que fica dentro de
que fica dentro de
Code:
stock OnPlayerDeathEx(playerid, killerid, reason)
PHP Code:
new Float:pPosX, Float:pPosY, Float:pPosZ;
GetPlayerPos(playerid, pPosX, pPosY, pPosZ);
for(new i_slot = 0, gun, ammo; i_slot != 12; i_slot++)
{
GetPlayerWeaponData(playerid, i_slot, gun, ammo);
if(gun != 0 && ammo != 0)
{
if(TempDropArmasBody[playerid] >= 30)
{
CreateDroppedGun(gun, ammo, pPosX+random(3)-random(3), pPosY+random(3)-random(3), pPosZ);
}
}
}