SA-MP Forums

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 26/09/2019, 05:52 PM   #1
AbyssMorgan
Banned
 
Join Date: Apr 2015
Location: Poland
Posts: 1,211
Reputation: 352
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
 

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 06:16 PM.


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