update wanted level module description
This commit is contained in:
parent
23e21bc109
commit
0836381de9
@ -1,17 +1,15 @@
|
|||||||
/*
|
/*
|
||||||
* Irresistible Gaming (c) 2018
|
* Irresistible Gaming (c) 2018
|
||||||
* Developed by Lorenc Pekaj
|
* Developed by Lorenc Pekaj
|
||||||
* Module:
|
* Module: cnr\wanted_level.pwn
|
||||||
* Purpose:
|
* Purpose: server-sided wanted level system (hooks the natives)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* ** Includes ** */
|
/* ** Includes ** */
|
||||||
#include < YSI\y_hooks >
|
#include < YSI\y_hooks >
|
||||||
|
|
||||||
/* ** Definitions ** */
|
|
||||||
|
|
||||||
/* ** Variables ** */
|
/* ** Variables ** */
|
||||||
new
|
new stock
|
||||||
p_WantedLevel [ MAX_PLAYERS ];
|
p_WantedLevel [ MAX_PLAYERS ];
|
||||||
|
|
||||||
/* ** Hooks ** */
|
/* ** Hooks ** */
|
||||||
@ -58,15 +56,6 @@ stock CNR_SetPlayerWantedLevel( playerid, level )
|
|||||||
// regulate player color
|
// regulate player color
|
||||||
SetPlayerColorToTeam( playerid );
|
SetPlayerColorToTeam( playerid );
|
||||||
|
|
||||||
/*if ( p_WantedLevel[ playerid ] > 2000 ) { // 8hska7082bmahu
|
|
||||||
p_WantedLevel[ playerid ] = 2000;
|
|
||||||
SendClientMessageFormatted( playerid, -1, ""COL_GOLD"[WANTED LEVEL]{FFFFFF} Your wanted level has reached its maximum. Further wanted levels will not append.", wantedlevel, p_WantedLevel[ playerid ] );
|
|
||||||
|
|
||||||
format( szBigString, 256, "[0xA1] %s(%d) :: %d :: %d\r\n", ReturnPlayerName( playerid ), playerid, p_WantedLevel[ playerid ], g_iTime );
|
|
||||||
AddFileLogLine( "security.txt", szBigString );
|
|
||||||
return 1;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
// set it to the variable value
|
// set it to the variable value
|
||||||
return SetPlayerWantedLevel( playerid, p_WantedLevel[ playerid ] );
|
return SetPlayerWantedLevel( playerid, p_WantedLevel[ playerid ] );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user