13.02.2013, 16:19
How can i edit the types of weapons i want it to have this paralisation effect ?
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
Код:
// 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;
}
This code as it is, just the fist has this effect

