PDA

View Full Version : SCM Spam


iLearner
30/09/2016, 10:23 AM
if(checkpointid == WeedHouse1 || checkpointid == WeedHouse2 || checkpointid == WeedHouse3)
{
if(playerData[playerid][playerJob] == JOB_DRUGDEALER)
{
ShowPlayerDialog(playerid, DIALOG_WEED_HOUSE, DIALOG_STYLE_LIST, "Drug House Menu", "Buy 1 drug seed(1000$)\nBuy 4 Drug Seeds(3600$)\nBuy 10 drug seeds(8000$)\nSell weed (rate: 1 weed = 350$)", "Select","");
}
else
{
SendClientMessage(playerid, COLOR_RED, "You must be a drug dealer to buy seeds!" );
}

}

So this is the thing i use on player enter cp, when player is a drug dealer it works fine, but when he she isnt a drug dealer server sends him kinda 12-15 messages:

SendClientMessage(playerid, COLOR_RED, "You must be a drug dealer to buy seeds!" );

Quinncell
30/09/2016, 10:35 AM
Exactly how many times does it send the message?That info is very important.If it actually sends 12-15 messages, I don't know what the problem is, you'll need to provide more code.If it spams the whole chat, then you've probably set the message to send to each player, which will result in a spam(I had a similar problem).

iLearner
30/09/2016, 10:47 AM
Thats the code... What i didnt put here is creation of CP.

That code I posted is under onplayerentercp(or dynamic)

PS: since I am testing it on test server, its only me there and all messages are sent to me...,

iLearner
30/09/2016, 08:46 PM
[22:41:32]You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

[22:41:32] You must be a drug dealer to buy seeds!

i counted em and they are 50+ .... (or 50, so damn consufing)

SickAttack
30/09/2016, 08:58 PM
You must have that somewhere where it is called over and over (such as a timer or OnPlayerUpdate).