29.10.2012, 18:58
pawn Код:
if(!IsPlayerInAnyVehicle(playerid))
{
new Armas[MAX_PLAYERS], Balas[MAX_PLAYERS];
GetPlayerWeaponData(playerid, 5, Armas[playerid], Balas[playerid]);
if(Armas[playerid] == 30 && Balas[playerid] >= 1)
{
if(GetPlayerWeapon(playerid) == 30) RemovePlayerAttachedObject(playerid,M4-AK);
else SetPlayerAttachedObject(playerid, M4-AK, 355, 1, -0.060921, -0.141673, 0.000000, 0.000000, 35.362735, 0.000000);
}
else if(Armas[playerid] == 31 && Balas[playerid] >= 1)
{
if(GetPlayerWeapon(playerid) == 31) RemovePlayerAttachedObject(playerid,M4-AK);
else SetPlayerAttachedObject(playerid, M4-AK, 356, 1, -0.099681, -0.133408, 0.000000, 1.027592, 19.667785, 0.000000);
}
else
{
RemovePlayerAttachedObject(playerid,M4-AK);
}
GetPlayerWeaponData(playerid, 3, Armas[playerid], Balas[playerid]);
if(Armas[playerid] == 25 && Balas[playerid] >= 1)
{
if(GetPlayerWeapon(playerid) == 25) RemovePlayerAttachedObject(playerid,PUMP);
else SetPlayerAttachedObject(playerid, PUMP, 349, 1, -0.109260, -0.059651, -0.066210, 186.310729, 42.375362, 6.716565);
}
else if(Armas[playerid] == 27 && Balas[playerid] >= 1)
{
if(GetPlayerWeapon(playerid) == 27) RemovePlayerAttachedObject(playerid,PUMP);
else SetPlayerAttachedObject(playerid, PUMP, 351, 1, -0.181073, -0.056285, -0.081242, 181.269729, 39.399085, 12.246994);
}
else
{
RemovePlayerAttachedObject(playerid,PUMP);
}
}
pawn Код:
static ArmaNaMao[MAX_PLAYERS];
new ArmaID = GetPlayerWeapon(playerid);
if(ArmaID > 0 && ArmaNaMao[playerid] != ArmaID)
{
CallLocalFunction("OnPlayerReloading", "lol", 5.0, 0, 0, 0, 0, 500);
}
ArmaNaMao[playerid] = ArmaID;
return 1;
}
Quote:
BATTLEFIELD 3 SAMP 100% POR LUCAS EMMANUEL |
Depois ainda acha ruim dos membros ficarem bravos com ele.