wanted stats 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: wanted stats help (
/showthread.php?tid=338724)
wanted stats help -
TheDiscussionCafe - 30.04.2012
hi guys. how i make wanted stats like if(gTeam == Team_Cop) - team cop can /record player incident. so for example, i'm a cop and i pull wanted player over. they i do /record (reason) and wen i do /record (reason) , it will record the wanted player reason why he was pulled over and why he go to jail. and so only gTeam == Team_Cop can /record and /view wanted history.
how i do that? and i using zcmd.
Re: wanted stats help -
FalconX - 01.05.2012
Quote:
Originally Posted by TheDiscussionCafe
hi guys. how i make wanted stats like if(gTeam == Team_Cop) - team cop can /record player incident. so for example, i'm a cop and i pull wanted player over. they i do /record (reason) and wen i do /record (reason) , it will record the wanted player reason why he was pulled over and why he go to jail. and so only gTeam == Team_Cop can /record and /view wanted history.
how i do that? and i using zcmd.
|
Use zcmd:-
Giving you an example of how to do.
pawn Код:
CMD:record(players, params[])
{
if(gTeam == TEAMCOP) // use your own vars
{
// your record functions etc
}
else
{
SendClientMessage(playerid, -1, "error: you are not a cop."); // error message
}
return 1;
}
-FalconX
Re: wanted stats help -
TheDiscussionCafe - 01.05.2012
Quote:
Originally Posted by FalconX
Use zcmd:-
Giving you an example of how to do.
pawn Код:
CMD:record(players, params[]) { if(gTeam == TEAMCOP) // use your own vars { // your record functions etc } else { SendClientMessage(playerid, -1, "error: you are not a cop."); // error message } return 1; }
-FalconX
|
yes thank you! any way to save records into dudb file and when cops type /viewreports or something like that , they can view the reports.dudb file in my scriptfiles?
Re: wanted stats help -
Ballu Miaa - 01.05.2012
My brother Falcon always helping people.
Re: wanted stats help -
TheDiscussionCafe - 01.05.2012
can someone please help me on this?
Re: wanted stats help -
Ballu Miaa - 02.05.2012
This will fill your server with BIG Logs of that. That can create lag and cross your host storage limit.
Re: wanted stats help -
2KY - 02.05.2012
Quote:
Originally Posted by Ballu Miaa
This will fill your server with BIG Logs of that. That can create lag and cross your host storage limit.
|
No it won't...
Re: wanted stats help -
TheDiscussionCafe - 03.05.2012
soo......
anyone have solution
Re: wanted stats help -
Ballu Miaa - 03.05.2012
Quote:
Originally Posted by 2KY
No it won't...
|
Ask him.