SA-MP Forums Archive
need help with setplayerwanted - 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: need help with setplayerwanted (/showthread.php?tid=243910)



need help with setplayerwanted - Lukas5852 - 25.03.2011

hi , i need help. i want to when player job id=14,he get 10stars for kill,if player job not 14,then he get for kill only 2stars,i try test it ,but when i kill someone,i get 12stars,here is script:

GameTextForPlayer(playerid,"killed",2000,2);
SetPlayerWantedLevel(killerid,GetPlayerWantedLevel (killerid)+2);
if(playerDB[playerid][job]!=14){
SetPlayerWantedLevel(killerid,GetPlayerWantedLevel (killerid)+10);
SetSpawnInfo(playerid,GetPlayerTeam(playerid),GetP layerSkin(playerid),-2645.6074,697.1324,27.9375,356.4937,0,0,0,0,0,0); //hospital }


sorry for my eng,if you need more info post here.