SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 26/09/2019, 06:39 PM   #1
AbyssMorgan
High-roller
 
AbyssMorgan's Avatar
 
Join Date: Apr 2015
Location: Poland
Posts: 1,213
Reputation: 351
Cool Chat #hashtag system

Include contain function for chat #hashtag system

PHP Code:
/*************************************************************************************************************************************
 *                                                                                                                                   *
 *                                                        )(   #hashtag   )(                                                         *
 *                                                                                                                                   *
 * 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:                                                                                                                        *
 * GetHashTag(playerid,text[],hashtag_color=0xCC0000FF,back_color=0xFFFFFFFF,max_len=sizeof(text));                                  *
 * HashTag::name(playerid);                                                                                                          *
 *                                                                                                                                   *
 * Callbacks:                                                                                                                        *
 * OnHashTagPresented(hashtag[]);                                                                                                    *
 *                                                                                                                                   *
 *************************************************************************************************************************************/ 
Example:
PHP Code:
//I want #suicide now :D
HashTag::suicide(playerid){
    
SetPlayerHealth(playerid,0.0);
    return 
1;
}

HashTag::banned(playerid){
    
PlayAudioStreamForPlayer(playerid,"https://adm.ct8.pl/upload/banned.mp3");
    return 
1;
}

public 
OnPlayerText(playerid,text[]){
    
GetHashTag(playerid,text,0xCC0000FF,0x00AA00FF); //back_color the same as first chat color
    
SendClientMessageToAll(0x00AA00FF,text);
    return 
0;

Download:
hashtag.inc
RGB.inc
DataConvert.inc

Non-Registered Users:
Bug Report

Last edited by AbyssMorgan; 26/10/2019 at 06:20 AM. Reason: Update v1.2.0
AbyssMorgan is offline   Reply With Quote
Old 24/10/2019, 12:01 AM   #2
PoniStar
Huge Clucker
 
Join Date: Aug 2018
Posts: 254
Reputation: 0
Default Re: Chat #hashtag system

Good work
PoniStar is offline   Reply With Quote
Old 24/10/2019, 12:34 AM   #3
WalkZ
Big Clucker
 
WalkZ's Avatar
 
Join Date: Oct 2019
Location: Pakistan
Posts: 85
Reputation: 4
Default Re: Chat #hashtag system

Useful stuff indeed, good work.
__________________
[EN] Chinatown Freeroam [BETA]
- Different Advanced Deathmatches with Times and Scores
- Different Races
- Different Events
- Gangs (Groves, Ballas, Aztecas, Mafia, Bikers & Triads)
- Drugs with Drug Dealers at Streets
- Hitman Bounty System
- Ammunations, Pizza Stacks, Burger-Shots, Banks
- Jobs (Pizza-Boy, Plumber, Trasher, Bus)
- Money-Bag every 30 minutes
- Reaction Test every 15 minutes
- Daily improving by adding new features and fixing present bugs.
WalkZ is offline   Reply With Quote
Old 26/10/2019, 06:20 AM   #4
AbyssMorgan
High-roller
 
AbyssMorgan's Avatar
 
Join Date: Apr 2015
Location: Poland
Posts: 1,213
Reputation: 351
Default Re: Chat #hashtag 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
[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
Chat System Help ||.Rier.|| Help Archive 4 17/06/2010 03:15 PM


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


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