[HELP] How can i do that? - 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: [HELP] How can i do that? (
/showthread.php?tid=113541)
[HELP] How can i do that? -
akis_tze - 14.12.2009
if player shot with gun,the player take 1 wanted level?
Re: [HELP] How can i do that? -
abhinavdabral - 14.12.2009
If you want that if someone kills a player, then he would gain one wanted level and the wanted level will increase with his kills
IF YES then here is the answer
Under OnPlayerDeath(..........){
put this code
pawn Код:
new wlvl=GetPlayerWantedLevel(killerid);
if(wlvl<6) SetPlayerWantedLevel(killerid, wlvl+1);
-Abhinav
Re: [HELP] How can i do that? -
akis_tze - 14.12.2009
I know that! i want if player shot with gun get wanted
Re: [HELP] How can i do that? -
TouR - 16.12.2009
hmm use "search" maybe there is a same topic
Re: [HELP] How can i do that? - Zeex - 16.12.2009
Read on the wiki about OnPlayerKeyStateChange and then do something like:
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_FIRE))
{
// change wanted level here
}
}
Re: [HELP] How can i do that? -
akis_tze - 16.12.2009
thanxs!!!
Re: [HELP] How can i do that? -
LarzI - 16.12.2009
You can also throw in a check if a player which is close enough to get shot by this player, looses health.
Then you "know" that the player gets hit by the player firing rounds.
This will never be 100% working, but if you want to, you can try this out. :P
Re: [HELP] How can i do that? -
TouR - 16.12.2009
can you show this in scripting mode?