SA-MP Forums Archive
PlayerWantedLevel, need help. - 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)
+--- Thread: PlayerWantedLevel, need help. (/showthread.php?tid=331393)



PlayerWantedLevel, need help. - Dan. - 04.04.2012

I am doing an arrest CMD for cops.

Basiclly, when a player has 1 star, he loses 1500 bucks. 2 stars, 3000 bucks, 3 stars 4500 bucks and so on and on. Is there any way, that with each start the fine rises 1500$ or I have to define every star in my gamemode? It would save me a lot of room. Awaiting reply!

Thanks,
Dan.



Respuesta: PlayerWantedLevel, need help. - Chris1337 - 04.04.2012

Код:
new JAILED [MAX_PLAYERS];


if(GetPlayerWantedLevel(ID) == 4)//// change to whaterever you want
        {
            format(string5,sizeof(string5),"You has been arrested!! Time: 1:30 seconds",Name(playerid));
            SendClientMessage(ID,RED,string5);
            JAILED[ID] = 1;
            SetPlayerPos(ID,215.9045,111.1902,999.0156);
			SendMessagetoCOPS(AZUL,"SERVER COPS:._______________________________________");
			format(string5,sizeof(string5),"Victim: %s [%d] Cop: %s [%d]",Nombre(ID),ID,Nombre(playerid),playerid);

			SetTimerEx("Carcel",90000,0,"i",ID);
			SetPlayerWantedLevel(ID,0);
			GivePlayerMoney(playerid,-800);
		}
Pwn dont work for me [/pwn]


Re: Respuesta: PlayerWantedLevel, need help. - dannyk0ed - 04.04.2012

Quote:
Originally Posted by axxelac
Посмотреть сообщение
Pwn dont work for me [/pwn]
its [ pawn] [/pawn]