SA-MP Forums Archive
Just 1 line ;( - 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: Just 1 line ;( (/showthread.php?tid=95174)



Just 1 line ;( - Divine - 02.09.2009

SetDisabledWeapons Is now removed
It was a best thing againts bad weapons I needed
Can you plz bring it back ?


Re: Just 1 line ;( - Correlli - 02.09.2009

Help yourself with OnPlayerUpdate callback and GetPlayerWeapon function.


Re: Just 1 line ;( - Divine - 02.09.2009

Quote:
Originally Posted by Don Correlli
Help yourself with OnPlayerUpdate callback and GetPlayerWeapon function.
Ohhhh man.....
I will try


Re: Just 1 line ;( - Przemcio - 02.09.2009

You can't fix Nightvision bug now... That function was very useful, so bring it back please?


Re: Just 1 line ;( - HuRRiCaNe - 02.09.2009

Also, You can use an anti cheat


Re: Just 1 line ;( - Divine - 02.09.2009

Quote:
Originally Posted by Przemcio
You can't fix Nightvision bug now... That function was very useful, so bring it back please?
Yeah, I used to have this bug to...
But now if you use "onplayerupdate" .. if it detects nightvision it will disarmhim or something...
Its lame now... I will just waste more time on scripting


Re: Just 1 line ;( - MenaceX^ - 02.09.2009

pawn Код:
public OnPlayerUpdate(playerid)
{
  if(!IsPlayerConnected(playerid)) return 0;
  if(GetPlayerWeapon(playerid)==any_forbidden_gun)
  {
    SendClientMessage(playerid,color,"This weapon is forbidden!");
    // Look for a function called "RemovePlayerWeapon(playerid,weaponid) and remove this weaponid.
  }
  return 1;
}



Re: Just 1 line ;( - Przemcio - 02.09.2009

I use Nightvision in my gamemode, therefore that function is very important to me.


Re: Just 1 line ;( - Correlli - 02.09.2009

Quote:
Originally Posted by Przemcio
You can't fix Nightvision bug now... That function was very useful, so bring it back please?
Maybe this bug is fixed, i don't know, i didn't tried yet. :/


Re: Just 1 line ;( - Divine - 02.09.2009

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by Przemcio
You can't fix Nightvision bug now... That function was very useful, so bring it back please?
Maybe this bug is fixed, i don't know, i didn't tried yet. :/
Yeah, NightVision and InfraRed bugs are ANNOYING !