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
#2

if (weaponid == 0 || weaponid == 1)
Reply
#3

it worked.

thx man. s2
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)