SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 26/09/2019, 05:52 PM   #1
AbyssMorgan
High-roller
 
AbyssMorgan's Avatar
 
Join Date: Apr 2015
Location: Poland
Posts: 1,212
Reputation: 351
Cool Chat @mentiones system

Include contain function for chat @mentiones system

PHP Code:
/*************************************************************************************************************************************
 *                                                                                                                                   *
 *                                                       )(   @mentiones   )(                                                        *
 *                                                                                                                                   *
 * Copyright © 2019 Abyss Morgan. All rights reserved.                                                                               *
 * Contributors: None                                                                                                                *
 *                                                                                                                                   *
 * Website:  adm.ct8.pl                                                                                                              *
 * Download: adm.ct8.pl/r/download                                                                                                   *
 *                                                                                                                                   *
 * Plugins: SScanf                                                                                                                   *
 * Modules: RGB                                                                                                                      *
 *                                                                                                                                   *
 * File Version: 1.2.0                                                                                                               *
 *                                                                                                                                   *
 * Functions:                                                                                                                        *
 * GetMentiones(playerid,text[],mention_color=0xCC0000FF,back_color=0xFFFFFFFF,max_len=sizeof(text));                                *
 *                                                                                                                                   *
 * Callbacks:                                                                                                                        *
 * OnPlayerMentioned(playerid,targetid);                                                                                             *
 *                                                                                                                                   *
 *************************************************************************************************************************************/ 
Example:
PHP Code:
public OnPlayerMentioned(playerid,targetid){
    
//create your own notice with TextDraw/sound
    
return 1;
}

public 
OnPlayerText(playerid,text[]){
    
GetMentiones(playerid,text,0xCC0000FF,0x00AA00FF); //back_color the same as first chat color
    
SendClientMessageToAll(0x00AA00FF,text);
    return 
0;
}
//Hi @Johny and @Alena how are you ?
//Two existing players got notice and nick color has been changed to 0xCC0000FF 
Download:
mentiones.inc
RGB.inc
DataConvert.inc

Non-Registered Users:
Bug Report

Last edited by AbyssMorgan; 26/10/2019 at 06:21 AM. Reason: Update v1.2.0
AbyssMorgan is offline   Reply With Quote
Old 26/09/2019, 06:13 PM   #2
DRIFT_HUNTER
High-roller
 
Join Date: Oct 2009
Posts: 2,073
Reputation: 188
Default Re: Chat @mentiones system

Wow, simple yet useful. Is it me or these will also match email? xD
__________________
Looking for someone to start drifting server, drop me a pm if you are interested.


Any PM's that include question about any kind of help will be ignored.
Use appropriate boards for that
DRIFT_HUNTER is offline   Reply With Quote
Old 26/09/2019, 09:47 PM   #3
Mad
Little Clucker
 
Mad's Avatar
 
Join Date: Jul 2019
Location: Tunisia
Posts: 15
Reputation: 2
Flowers Re: Chat @mentiones system

You're amazing brother, i've wanted to make this a long time ago but it was compliacted for me but you've done it! Good job, keep up!
Mad is offline   Reply With Quote
Old 26/10/2019, 07:03 AM   #4
AbyssMorgan
High-roller
 
AbyssMorgan's Avatar
 
Join Date: Apr 2015
Location: Poland
Posts: 1,212
Reputation: 351
Default Re: Chat @mentiones system

Update v1.2.0:

- Fixed missing include DataConvert.inc

- Fixed RGB functions
AbyssMorgan is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] Chat @mentiones system KatarinaCalzaghe Includes 0 13/02/2018 02:59 PM
[FilterScript] RECS - Raf's External Chat System - Chat from your Android phone ! R@f Filterscripts 71 26/05/2017 06:28 PM
[FilterScript] Shrewd Chat System V2 (With Smart Chat V3) [Good for Roleplay] =WoR=Varth Filterscripts 24 13/03/2017 01:24 PM
[FilterScript] Chat System nezo2001 Filterscripts 7 20/02/2015 10:23 PM
[FilterScript] [FS] Chat System ZaR Релизы/Releases 4 22/05/2010 10:01 AM


All times are GMT. The time now is 09:13 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.