16.01.2014, 11:54
Quote:
Qual й a funзгo que no seu public OnPlayerDeath que esta fazendo as armas droparem, procure e coloque assim
Dentro da public OnPlayerDeath: Код:
if(PlayerInfo[playerid][pGodMode] == 0) { ResetPlayerWeapons(playerid); //AQUI coloque a funзгo que dropa as armas do seu gamemode } else { ResetPlayerWeapons(playerid); } |
pawn Код:
if(GetPlayerWeapon(playerid) > 0)
{
new Float:pPosX, Float:pPosY, Float:pPosZ;
GetPlayerPos(playerid, pPosX, pPosY, pPosZ);
new r;
for(new i = 0; i != GetMaxPlayers()+100; i++)
{
if(DropGun[i][WeaponID] == 0)
{
r = i;
break;
}
}
DropGun[r][PickupID] = CreatePickup(GetWeaponModel(GetPlayerWeapon(playerid)), 19, pPosX, pPosY, pPosZ);
DropGun[r][WeaponID] = GetPlayerWeapon(playerid);
DropGun[r][Ammo] = minrand(100, 5000);
}
pawn Код:
if(GetPlayerWeapon(playerid) > 0)
{
new Float:pPosX, Float:pPosY, Float:pPosZ;
GetPlayerPos(playerid, pPosX, pPosY, pPosZ);
new r;
for(new i = 0; i != GetMaxPlayers()+100; i++)
{
if(PlayerInfo[playerid][pGodMode] == 0)
{
ResetPlayerWeapons(playerid);
if(DropGun[i][WeaponID] == 0)
{
r = i;
break;
}
}
else
{
ResetPlayerWeapons(playerid);
}
}
DropGun[r][PickupID] = CreatePickup(GetWeaponModel(GetPlayerWeapon(playerid)), 19, pPosX, pPosY, pPosZ);
DropGun[r][WeaponID] = GetPlayerWeapon(playerid);
DropGun[r][Ammo] = minrand(100, 5000);
}
Testei e nгo deu certo nгo...