Stun system feature (quick question)
#1

How can i edit the types of weapons i want it to have this paralisation effect ?

Код:
// Script de Stun
// Paralisaзгo por Golpe com armas especificadas
//
#define FILTERSCRIPT
#include <a_samp>

forward stun(playerid);

public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{	
    if (weaponid == 0)// RIGHT HERE, HOW CAN I PUT MORE WEAPON'S IDS HERE ?
    {
    TogglePlayerControllable(playerid, 0);
    SetTimerEx("stun", 2000, false, "d", playerid);//Esses 2000 sгo 2 seg, pode ser modificado
    }
}



public stun(playerid)
{
    TogglePlayerControllable(playerid, 1);
    return 1;
}
i've tried to put a array and use the operators, but none has worked.

This code as it is, just the fist has this effect
Reply


Messages In This Thread
Stun system feature (quick question) - by ToySoldier - 13.02.2013, 16:19
Re: Stun system feature (quick question) - by S0n1COwnsYou - 13.02.2013, 16:28
Re: Stun system feature (quick question) - by ToySoldier - 13.02.2013, 16:35

Forum Jump:


Users browsing this thread: 2 Guest(s)