Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Releases Libraries [Library] #hashtag

 
  • 0 Vote(s) - 0 Average
Library #hashtag
AbyssMorgan
Offline

Burgershot Member
Posts: 63
Threads: 25
Joined: Apr 2021
Reputation: 8
Location: Poland
#1
2021-04-18, 12:00 PM (This post was last modified: 2021-08-06, 04:14 PM by AbyssMorgan. Edit Reason: Update v1.2.1 )
Include contain function for chat #hashtag system

Code:
hashtag.inc
Copyright © 2021 Abyss Morgan. All rights reserved.
Contributors: None

Website: https://adm.ct8.pl

Plugins: SScanf
Modules: RGB

File Version: 1.2.1

Functions:
GetHashTag(playerid,text[],hashtag_color=0xCC0000FF,back_color=0xFFFFFFFF,max_len=sizeof(text));
GetAllowedHashTag();
SetAllowedHashTag(number);
HashTag::name(playerid);

Callbacks:
OnHashTagPresented(hashtag[]);

Example:
Code:
//I want #suicide now :D
HashTag::suicide(playerid){
    SetPlayerHealth(playerid,0.0);
    return 1;
}

HashTag::banned(playerid){
    PlayAudioStreamForPlayer(playerid,"example.com");
    return 1;
}

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

Download:
hashtag.inc
RGB.inc
DataConvert.inc
AbyssMorgan
Offline

Burgershot Member
Posts: 63
Threads: 25
Joined: Apr 2021
Reputation: 8
Location: Poland
#2
2021-08-06, 04:15 PM
Update v1.2.1:

- Fixed issue with multiple tags doesn't work

- Added functions:
Code:
GetAllowedHashTag();
SetAllowedHashTag(number);
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode