Test for me please - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Test for me please (
/showthread.php?tid=476334)
Test for me please -
Lajko1 - 17.11.2013
Hey because I have problems with port forwarding and I can't open server so I could test with my friend I need to post topics like this.. (if someone know how to fix "Out of LAN side network address range" error at forwarding, feel free to PM me I'm using Buffalo router..)
So if player will be shot with weaponid 23, player won't be able to move...?
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(issuerid != INVALID_PLAYER_ID && weaponid == 23 && IsPlayerCop(playerid))
{
TogglePlayerControllable(playerid, 0);
}
return 1;
}
Re: Test for me please -
SuperViper - 17.11.2013
IsPlayerCop should be used on
issuerid. I'm assuming you're trying to create a taser.
Also, you can use Hamachi for testing without port forwarding.
Re: Test for me please -
Lajko1 - 17.11.2013
Thank you, I might try Hamachi also