24.02.2012, 14:33
Queria Algum Code ou fs de sirene e arma nas costa e tambem queria include ou plugin do radio!!
Ja procurei mais nao achei !!!Vlw
Ja procurei mais nao achei !!!Vlw
#include <a_samp>
#define SlotAKeFUZIL 1
#define SlotEscopeta 2
//----------------------------------------------------------------------------------------------------------------------------------------------------------------
public OnPlayerUpdate(playerid)
{
if(!IsPlayerInAnyVehicle(playerid))
{
new Armas[MAX_PLAYERS],Balas[MAX_PLAYERS];
GetPlayerWeaponData(playerid, 5, Armas[playerid], Balas[playerid]);
if(Armas[playerid] == 30 && Balas[playerid] >= 1)//Ak-47
{
if(GetPlayerWeapon(playerid) == 30) RemovePlayerAttachedObject(playerid,SlotAKeFUZIL);
else SetPlayerAttachedObject(playerid, SlotAKeFUZIL, 355, 1, -0.060921, -0.141673, 0.000000, 0.000000, 35.362735, 0.000000);
}
else if(Armas[playerid] == 31 && Balas[playerid] >= 1) //FUZIL
{
if(GetPlayerWeapon(playerid) == 31) RemovePlayerAttachedObject(playerid,SlotAKeFUZIL);
else SetPlayerAttachedObject(playerid, SlotAKeFUZIL, 356, 1, -0.099681, -0.133408, 0.000000, 1.027592, 19.667785, 0.000000);
}
else
{
RemovePlayerAttachedObject(playerid,SlotAKeFUZIL);
}
GetPlayerWeaponData(playerid, 3, Armas[playerid], Balas[playerid]);
if(Armas[playerid] == 25 && Balas[playerid] >= 1)//escopeta
{
if(GetPlayerWeapon(playerid) == 25) RemovePlayerAttachedObject(playerid,SlotEscopeta);
else SetPlayerAttachedObject(playerid, SlotEscopeta, 349, 1, -0.109260, -0.059651, -0.066210, 186.310729, 42.375362, 6.716565);
}
else if(Armas[playerid] == 27 && Balas[playerid] >= 1) //escopeta de combate
{
if(GetPlayerWeapon(playerid) == 27) RemovePlayerAttachedObject(playerid,SlotEscopeta);
else SetPlayerAttachedObject(playerid, SlotEscopeta, 351, 1, -0.181073, -0.056285, -0.081242, 181.269729, 39.399085, 12.246994);
}
else
{
RemovePlayerAttachedObject(playerid,SlotEscopeta);
}
}
return 1;
}
Arma colada , by eu.
PHP код:
Sirene eu nгo tenho D: sorry |
#define SlotEagle 3
else if(Armas[playerid] == 24 && Balas[playerid] >= 1) //EAGLE
{
if(GetPlayerWeapon(playerid) == 31) RemovePlayerAttachedObject(playerid,SlotEagle);
else SetPlayerAttachedObject(playerid, SlotAKeFUZIL, 356, 1, -0.099681, -0.133408, 0.000000, 1.027592, 19.667785, 0.000000);
}