[FilterScript] Armour Update
#1

What this script do:

[ame]http://www.youtube.com/watch?v=H41c86Max0Q[/ame]

Okay! let's do this =) :

In the top of your code paste this:

pawn Код:
#define ARMOUR_INDEX 4 // this is the index of armour

next step: we pasting code to on playerupdate:

pawn Код:
public OnPlayerUpdate(playerid)
{
    new Float:armour[MAX_PLAYERS];
    GetPlayerArmour(playerid, armour[playerid]);
    if( armour[playerid] > 0.0 )
    {
        SetPlayerAttachedObject( playerid, ARMOUR_INDEX, 1242, 1, 0.019999, 0.039999, 0.000000, 2.459999, 89.699989, -3.100000, 1.710000, 2.119999, 1.719999);//áðîíÿ
    }
    else if( armour[playerid] == 0.0 && IsPlayerAttachedObjectSlotUsed(i, ARMOUR_INDEX))
    {
        RemovePlayerAttachedObject(playerid, ARMOUR_INDEX); // armour
    }
    return 1;
}
So this is it, thanks for watching, reading, and using!
and sorry for my bad english!
Reply


Messages In This Thread
Armour Update - by Nexotronix - 10.01.2011, 11:21
Re: Armour Update - by Mr.Stranger - 10.01.2011, 11:26
Re: Armour Update - by Biesmen - 10.01.2011, 11:36
Re: Armour Update - by Mr.Stranger - 10.01.2011, 11:45
Re: Armour Update - by Red_Devils - 10.01.2011, 12:00
Re: Armour Update - by Nexotronix - 10.01.2011, 12:21
Re: Armour Update - by schillow - 10.01.2011, 12:39
Re: Armour Update - by Hash [NL-RP] - 10.01.2011, 15:16
Re: Armour Update - by Kwarde - 10.01.2011, 15:35
Re: Armour Update - by Hash [NL-RP] - 10.01.2011, 15:40

Forum Jump:


Users browsing this thread: 1 Guest(s)