how to work ? D: - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to work ? D: (
/showthread.php?tid=168731)
how to work ? D: -
willsuckformoney - 17.08.2010
pawn Код:
if(WeaponID == 49 && 50 && 51 && 52 && 53 && 54)
{
SetPlayerWantedLevel(killerid,0);
}
How to make it so that when they die from
- 49 - Vehicle
- 50 - Helicopter blades
- 51 - Explosion
- 53 - Drowned
- 54 - Collision
then the person who died wont gain wanted? D:
btw
Код:
error 017: undefined symbol "WeaponID"
Re: how to work ? D: -
PotH3Ad - 17.08.2010
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
if(!IsIllegalKill(reason)) SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid)+1);
}
return 1;
}
stock IsIllegalKill(reason)
{
switch(reason)
{
case 49, 50, 51, 53, 54: return 1;
default: return 0;
}
return 0;
}
Re: how to work ? D: -
Kitten - 17.08.2010
EDIT: Hes posted it :P
Re: how to work ? D: -
willsuckformoney - 17.08.2010
tanks lol works