SCM Spam
#1

PHP код:
if(checkpointid == WeedHouse1 || checkpointid == WeedHouse2 || checkpointid == WeedHouse3)
                {
                    if(
playerData[playerid][playerJob] == JOB_DRUGDEALER)
                    {
                            
ShowPlayerDialog(playeridDIALOG_WEED_HOUSEDIALOG_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(playeridCOLOR_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:

PHP код:
SendClientMessage(playeridCOLOR_RED"You must be a drug dealer to buy seeds!" ); 
Reply
#2

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).
Reply
#3

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...,
Reply
#4

PHP код:
[22:41:32]You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds!
[
22:41:32You must be a drug dealer to buy seeds
i counted em and they are 50+ .... (or 50, so damn consufing)
Reply
#5

You must have that somewhere where it is called over and over (such as a timer or OnPlayerUpdate).
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)