pawn Code:
CMD:powers(playerid, params[])
{
if(GetPlayerTeam(playerid) == 2)
{
if(Flaming[playerid] == 0)
{
Flaming[playerid] = 1;
SetPlayerAttachedObject( playerid, 0, 18693, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
SetPlayerAttachedObject( playerid, 1, 18693, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
SetPlayerAttachedObject( playerid, 2, 18703, 6, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
SetPlayerAttachedObject( playerid, 3, 18703, 5, 1.983503, 1.558882, -0.129482, 86.705787, 308.978118, 268.198822, 1.500000, 1.500000, 1.500000 );
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You can now use your supers powers!");
}
else if(Flaming[playerid] == 1)
{
Flaming[playerid] = 0;
for ( new i = 0; i < 4; i++ )
if ( IsPlayerAttachedObjectSlotUsed( playerid, i ) )
RemovePlayerAttachedObject( playerid, i );
}
return 1;
}
else { SendClientMessage(playerid, COLOR_RED, "[TEAM] {FFFFFF}- You're not a zombie, so you do not have super powers!"); return 1; }
}