WantedLEVEL! - 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: WantedLEVEL! (
/showthread.php?tid=577458)
WantedLEVEL! -
KamalBa - 11.06.2015
I search for Wanted Level system so I will open CnR server and i want to know how to create a Wanted level system
I mean CnR Level can't stop it will continue so maybe the player can reach 400 wanted level or 1000 sometimes
So i want this wanted level system...
Can anyone help
Re: WantedLEVEL! -
SpaceX - 11.06.2015
Try this
https://sampforum.blast.hk/showthread.php?tid=577307
Re: WantedLEVEL! -
KamalBa - 11.06.2015
I have added /asay and /ac
After that i got this, I have the zcmd file on Pawno/include
Code:
D:\My server\gamemodes\TDM_Script.pwn(7) : fatal error 100: cannot read from file: "zcmd"
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: WantedLEVEL! -
KamalBa - 11.06.2015
it will work like this ?
Code:
public OnPlayerUpdate(playerid)
{
if (GetPlayerWantedLevel(playerid) > 6)
{
SetPlayerWantedLevel(playerid, 6);
}
SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid) + 4);
format(string, sizeof(string), "Store Robbery - Wanted Level %d - Yellow", GetPlayerWantedLevel(playerid));
SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid) + 5);
format(string, sizeof(string), "Store Robbery - Wanted Level %d - Red", GetPlayerWantedLevel(playerid));
SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid) + 6);
format(string, sizeof(string), "Player Killed - Wanted Level %d - Red", GetPlayerWantedLevel(playerid));
SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid) + 7);
format(string, sizeof(string), "Bank Robbery - Wanted Level %d - Red", GetPlayerWantedLevel(playerid));
return 1;
}
Re: WantedLEVEL! -
SpaceX - 11.06.2015
What is the maximum wanted level in your server?
Re: WantedLEVEL! -
KamalBa - 11.06.2015
No limit You can be 2000 wanted level if the cop can't catch you and i want each 2 stars to be jailed for 30 sec...
Can you help
Re: WantedLEVEL! -
SpaceX - 11.06.2015
You do know you can only set wanted levels from 0 to 6?
Look at the syntax of
SetPlayerWantedLevel
Quote:
Originally Posted by SA:MP WIKI
Parameters:
(playerid, level)
playerid The ID of the player to set the wanted level of.
level The wanted level to set for the player (0-6).
|
Re: WantedLEVEL! -
KamalBa - 11.06.2015
I don't me the stars
I mean The player wanted will show on the stars he got 6 stars but when had more than 6 stars it will show on the screen under the stars
PlayerWantedLevel 20
like this
or
Stars wanted is 20
I saw it on this server
192.99.220.194:7782
Re: WantedLEVEL! -
Banana_Ghost - 12.06.2015
Make a textdraw, if I'm not misaking, fonts 1 and 3 (could be other fonts) make stars when using the [ or ] symbols.