help me good sripters - 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: help me good sripters (
/showthread.php?tid=604745)
help me good sripters -
Rafaeloo - 09.04.2016
Hello all
i have a script signcheck , the script is from horizon roleplay but i want to make a signcheck in my server like LSRP with automatic signcheck
PHP код:
CMD:signcheck(playerid, params[])
{
if(PayCheckCode[playerid] == 0) return SendClientMessage(playerid, COLOR_WHITE, "There is no paycheck to sign. Please wait for the next paycheck.");
new string[128];
format(string, sizeof(string), "Check code: %d\n\nEnter your check code to receive your paycheck:", PayCheckCode[playerid]);
ShowPlayerDialogEx(playerid, SIGNCHECK, DIALOG_STYLE_INPUT, "Sign check", string, "Sign check","Cancel");
return 1;
}
This is my code, i want to make automatic for e.x when you are afk to get the money not to do /signcheck and nuimbers
Please help me & sorry for my english
_repp if u help me
Re: help me good sripters -
BarFix - 09.04.2016
Theres a lot of code to be done with automatic signchecks... The command you pasted is too receive and answer your signcheck.. for e.g:
Код:
SendClientMessage(i, COLOR_GREY,"_______________________________________________________________");
SendClientMessage(i, COLOR_WHITE,"Information on paychecks: {33CCFF}/payhelp {FFFFFF}or {33CCFF}/taxhelp");
SendClientMessage(i, COLOR_GREY,"_______________________________________________________________");
SendClientMessage(i, COLOR_WHITE,"Sign the check to receive your paycheck.");
SendClientMessage(i, COLOR_LIGHTBLUE, "Type /signcheck");
SendClientMessage(i, COLOR_WHITE,"You have 5 minutes to sign the check before it becomes invalid.");
SendClientMessage(i, COLOR_GREY,"_______________________________________________________________");
We cannot simply copy and pasted one block of code for it too work.. look at some SA-MP forums, there might be a signcheck filterscript somewhere.