Is this possible? - 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: Is this possible? (
/showthread.php?tid=476702)
Is this possible? -
JeffDiamond - 19.11.2013
Is it possible to have a system where if a player wins big money in the casino, it will show a notification to the admins showing how much they have won?
Re: Is this possible? -
whando - 19.11.2013
Yes it is.
Re: Is this possible? -
JeffDiamond - 19.11.2013
Anyone know how?
AW: Is this possible? -
Skimmer - 19.11.2013
Do you mean these machines from four dragon casino, which has been created by GTA?
Re: Is this possible? -
DJ_Shocker - 19.11.2013
Something like:
pawn Код:
public ABroadCast(color,const string[])
{
foreach(new i : Player)
{
if (PlayerInfo[i][pAdmin] >= 1)
{
SendClientMessage(i, color, string);
}
}
return 1;
}
Basically you would make the string, and then send it to admins like this:
pawn Код:
format(string, 256, "[Winning]: [%d]%s has won $%d",playerid, playername,money);
ABroadCast(COLOR_RED,string);
Re: AW: Is this possible? -
JeffDiamond - 19.11.2013
Quote:
Originally Posted by Skimmer
Do you mean these machines from four dragon casino, which has been created by GTA?
|
Correct.
Re: Is this possible? -
-Prodigy- - 19.11.2013
Well you can't detect if they won money by using the casino, but you can detect if:
1. They earned money
2. Check if they are near a casino machine at the time they earned the money
3. If so, send message to admins.
Not 100% accurate, but it would do the job
Re: Is this possible? -
JeffDiamond - 19.11.2013
Quote:
Originally Posted by DJ_Shocker
Something like:
pawn Код:
public ABroadCast(color,const string[]) { foreach(new i : Player) { if (PlayerInfo[i][pAdmin] >= 1) { SendClientMessage(i, color, string); } } return 1; }
Basically you would make the string, and then send it to admins like this:
pawn Код:
format(string, 256, "[Winning]: [%d]%s has won $%d",playerid, playername,money); ABroadCast(COLOR_RED,string);
|
So would this work for the machines in 4d?
Re: Is this possible? -
DJ_Shocker - 19.11.2013
well it would send the message, but as far as actually making the entire system, That's up to you