SA-MP Forums Archive
Probleme wanted - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Română/Romanian (https://sampforum.blast.hk/forumdisplay.php?fid=40)
+---- Thread: Probleme wanted (/showthread.php?tid=535413)



Probleme wanted - myhay9898 - 03.09.2014

1.Cand un player cu wanted este omorat de un cop sa intre automat la jail.
2.Cand un cop omoara un player primeste wanted.Cum fac cop-ul sa nu mai primeasca wanted?
3.Vreau si eu comanda /skip pentru tutorial.


Re: Probleme wanted - [NoV]LaZ - 04.09.2014

Pseudocoduri:

1.
Код:
callback OnPlayerDeath(playerid, killerid, reason)
if GetPlayerWantedLevel(playerid) >= 1 && killerid = Cop
    jail(playerid)
2.
Код:
callback OnPlayerDeath(playerid, killerid, reason)
if killerid != Cop
    SetPlayerWantedLevel(playerid)
3.
Код:
https://sampwiki.blast.hk/wiki/Scripting_Basics
Te va ajuta foarte mult.