SA-MP Forums Archive
Message 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: Message Help (/showthread.php?tid=318632)



Message Help - Nuke547 - 15.02.2012

I added something to my Vortex Roleplay script, and onplayertext, I did the following:

PHP код:
if(Player[playerid][PMingID] >= 0)
    {
        
format(stringsizeof(string), "[PM] to %s: %s"GetName(Player[playerid][PMingID]), text);
        
SendClientMessage(playeridPLAYERCOMstring);
        
format(stringsizeof(string), "PM from %s (ID: %d): %s"GetName(playerid), playeridtext);
        
SendClientMessage(Player[playerid][PMingID], YELLOWstring);
    }
    if(! 
strcmp(text"##"true))
    {
        if(
Player[playerid][PMingID] >= 0)
        {
            
format(stringsizeof(string), "You have stopped PMing %s"GetName(Player[playerid][PMingID]));
            
SendClientMessage(playeridWHITEstring);
            
Player[playerid][PMingID] = -1;
        }
        else
        {
            
SendClientMessage(playeridWHITE"You are not PMing anybody!");
        }
    } 
But it still does a nearbymessage. Is there a way so it doesnt? Cause I cant seem to find out how.