tazer help
#6

all my codes are here:
PHP код:
forward TazerTimer(playerid
PHP код:
new Tazer[MAX_PLAYERS]; 
PHP код:
public OnPlayerGiveDamage(playeriddamagedidFloatamountweaponid)
{
    new 
string[128];
    if(
KasutajaInfo[playerid][Grupeering] == || KasutajaInfo[playerid][Grupeering] == 9)
    {
        if(
Tazer[playerid] == && weaponid == 0)
        {
            
format(stringsizeof(string), "* %s laseb %s'i tazeriga kхhtu"RPN(playerid),RPN(damagedid));
            
SendEmotion(playeridstring);
            
TogglePlayerControllable(damagedidfalse);
            
GameTextForPlayer(damagedid"~r~Sa said Tazeriga kхhtu!"15000,6);
            
SetTimerEx("TazerTimer"15000false"i"damagedid);
        }
    }
    new 
Float:Armor;
    
GetPlayerArmour(damagedidArmor);
    if(
damagedid != INVALID_PLAYER_ID)
    {
        if(
weaponid != 0)
        {
            if(
amount >= 8)
            {
                if(
Armor <= 0)
                {
                    if(
KasutajaInfo[damagedid][Grupeering] != 8)
                    {
                        if(
KasutajaInfo[damagedid][JooksebVerd] == 0)
                        {
                            
KasutajaInfo[damagedid][JooksebVerd] = 1;
                            
format(stringsizeof(string), "* %s saab vigastada ja hakkab verd jooksma",RPN(damagedid));
                            
SendEmotion(damagedidstring);
                        }
                    }
                }
            }
        }
    }
    return 
1;

PHP код:
public TazerTimer(playerid)
{
    
TogglePlayerControllable(playeridtrue);
    return 
1;

PHP код:
COMMAND:tazer(playeridparams[])
{
    new 
string[128];
    if(
PlayerLoggedIn[playerid] == true)
    {
        if(
KasutajaInfo[playerid][Grupeering] == || KasutajaInfo[playerid][Grupeering] == 9)
        {
            if(
Tazer[playerid] == 0)
            {
                
Tazer[playerid] = 1;
                
GivePlayerWeapon(playerid2365500);
                
format(stringsizeof(string), "* %s vхtab vццlt vдlja tazeri",RPN(playerid));
                
SendEmotion(playeridstring);
            }
            else if(
Tazer[playerid] == 1)
            {
                
Tazer[playerid] = 0;
                
SetPlayerAmmo(playerid230);
                
format(stringsizeof(string), "* %s paneb tazeri vццle tagasi",RPN(playerid));
                
SendEmotion(playeridstring);
            }
        }
        else 
KasutusText(playerid"~r~VIGA: ~b~Sul ei ole tazerit");
    }
    else 
KasutusText(playerid"~r~VIGA: ~b~Sa ei ole veel sisse loginud");
    return 
1;

Can anyone help me to fix it, i want this if i shoot with SD then it's taze someone
Reply


Messages In This Thread
tazer help - by b00m112 - 19.01.2015, 17:48
Re: tazer help - by ChromeAmazing - 19.01.2015, 17:50
Re: tazer help - by zT KiNgKoNg - 19.01.2015, 17:55
Re: tazer help - by b00m112 - 19.01.2015, 18:13
Re: tazer help - by b00m112 - 19.01.2015, 19:55
Re: tazer help - by b00m112 - 20.01.2015, 19:29
Re: tazer help - by Trevor Gin - 20.01.2015, 20:45
Re: tazer help - by b00m112 - 21.01.2015, 12:04
Re: tazer help - by b00m112 - 21.01.2015, 14:17

Forum Jump:


Users browsing this thread: 2 Guest(s)