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:39 PM   #1
AbyssMorgan
Banned
 
Join Date: Apr 2015
Location: Poland
Posts: 1,211
Reputation: 352
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 05:20 AM. Reason: Update v1.2.0
AbyssMorgan is offline   Reply With Quote
Old 23/10/2019, 11:01 PM   #2
PoniStar
Huge Clucker
 
Join Date: Aug 2018
Posts: 290
Reputation: 0
Default Re: Chat #hashtag system

Good work
PoniStar is offline   Reply With Quote
Old 23/10/2019, 11:34 PM   #3
WalkZ
Big Clucker
 
WalkZ's Avatar
 
Join Date: Oct 2019
Location: Pakistan
Posts: 100
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, 05:20 AM   #4
AbyssMorgan
Banned
 
Join Date: Apr 2015
Location: Poland
Posts: 1,211
Reputation: 352
Default Re: Chat #hashtag system

Update v1.2.0:

- Fixed missing include DataConvert.inc

- Fixed RGB functions
AbyssMorgan is offline   Reply With Quote
Old 29/01/2020, 08:49 AM   #5
Admireal
Big Clucker
 
Join Date: Sep 2016
Posts: 118
Reputation: 5
Default Re: Chat #hashtag system

link broken
Admireal is offline   Reply With Quote
Old 29/01/2020, 09:14 PM   #6
Symon
Gangsta
 
Symon's Avatar
 
Join Date: Apr 2019
Location: Italy
Posts: 863
Reputation: 68
Default Re: Chat #hashtag system

Quote:
Originally Posted by Admireal View Post
link broken
The website has been closed and i doubt OP will answer since has been banned.
Symon 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 70 26/05/2017 05:28 PM
[FilterScript] Shrewd Chat System V2 (With Smart Chat V3) [Good for Roleplay] =WoR=Varth Filterscripts 24 13/03/2017 12:24 PM
Chat System Help ||.Rier.|| Help Archive 4 17/06/2010 02:15 PM


All times are GMT. The time now is 01:36 AM.


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