Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,628
» Latest member: saimkhan0493
» Forum threads: 2,341
» Forum posts: 12,279

Full Statistics

Online Users
There are currently 861 online users.
» 0 Member(s) | 859 Guest(s)
Bing, Google

Latest Threads
SA:MP Custom Character Li...
Forum: General Discussions
Last Post: Dilshad
2025-10-22, 04:15 PM
» Replies: 0
» Views: 28
Anyone got old rp scripts...
Forum: General Discussions
Last Post: Bilal
2025-10-21, 01:02 PM
» Replies: 5
» Views: 5,181
Anyone has the SARP Gamem...
Forum: Gamemodes
Last Post: Bilal
2025-10-21, 12:59 PM
» Replies: 0
» Views: 51
SARP Gamemode
Forum: Releases
Last Post: Bilal
2025-10-21, 12:58 PM
» Replies: 0
» Views: 43
Need To Hire Pawno Coder....
Forum: General Discussions
Last Post: Dilshad
2025-10-21, 06:20 AM
» Replies: 1
» Views: 788
Original Godfather
Forum: Pawn Scripting
Last Post: NmE
2025-10-20, 11:48 AM
» Replies: 3
» Views: 202
What would you start?
Forum: Life
Last Post: vuongtrungnu13
2025-10-20, 01:55 AM
» Replies: 4
» Views: 9,832
People who have one of th...
Forum: Tech
Last Post: vuongtrungnu13
2025-10-20, 01:39 AM
» Replies: 2
» Views: 5,170
After School Community
Forum: Advertisements
Last Post: cosminupgaming
2025-10-19, 12:42 PM
» Replies: 0
» Views: 96
[SDK] SDK C++ MODERNO
Forum: Portuguese/Portugu?s
Last Post: Crazy_ArKzX
2025-10-19, 02:18 AM
» Replies: 0
» Views: 48

 
  Telegram Connector
Posted by: SyS - 2019-04-14, 06:38 AM - Forum: Plugins - Replies (9)

TgConnector



[Image: tgconnector.svg?branch=master] [Image: snip8i9cd6xh2x1u?svg=true] [Image: sampctl-TGConnector-2f2f2f.svg] [Image: tgconnector.svg] [Image: tgconnector.svg] [Image: tgconnector.svg]



A telegram connector plugin that helps to interact with telgram bots through SA-MP.



Installing



If you are a sampctl user



PHP Code:
sampctl p install Sreyas-Sreelal/tgconnector 




OR


  • Download suitable binary files from releases for your operating system

  • Add it your plugins folder

  • Add tgconnector to server.cfg or? tgconnector.so (for linux)

  • Add tgconnector.inc in includes folder


Building


  • Clone the repo



    PHP Code:
    git clone https://github.com/sreyas-sreelal/tgconnector.git 




  • Use makefile to compile and test


    • Setup testing environment



      PHP Code:
      make setup 




    • To build release version



      PHP Code:
      make release 




    • Run tests



      PHP Code:
      make run 






Example



A basic bot



PHP Code:
#include<a_samp>

#include<tgconnector>

#include<zcmd>



#define CHAT_ID (TGChatId:"YOUR_CHAT_ID_HERE")



new TGBot:g_bot;



main() {

//Store bot token in SAMP_TG_BOT environment variable and connect from it

g_bot TGConnectFromEnv("SAMP_TG_BOT");

if(
g_bot != INVALID_BOT_ID) {

printf("bot connected successfully!");

} else {

printf("Error: bot couldn't connect");

}

}



public 
OnTGMessage(TGBot:bot,TGUser:fromid,TGMessage:messageid) {



if(
g_bot != bot){

return 
1;

}



new?

message[50],

username[24],

chatname[56],

server_msg[128];



TGCacheGetMessage(message);

TGCacheGetUserName(username);

TGCacheGetChatName(chatname);



format(server_msg,128,"[%s] %s(%d): %s",chatname,username,_:fromid,message);

SendClientMessageToAll(-1,server_msg);



return 
1;

}





public 
OnTGUserJoined(TGBot:bot,TGUser:userid) {

new?

TGChatId:chatid[15],

username[24],

chatname[56],

server_msg[128];



? ? 
//Retrive data stored in current context

TGCacheGetUserName(username);

TGCacheGetChatId(chatid);

TGCacheGetChatName(chatname);



format(server_msg,128,"User %s(%d) joined %s(%s)",username,_:userid,chatname,_:chatid);

SendClientMessageToAll(-1,server_msg);

return 
1;

}



public 
OnTGUserLeft(TGBot:bot,TGUser:userid) {

new?

TGChatId:chatid[15],

username[24],

chatname[56],

server_msg[128];



TGCacheGetUserName(username);

TGCacheGetChatId(chatid);

TGCacheGetChatName(chatname);



format(server_msg,128,"User %s(%d) left %s(%s)",username,_:userid,chatname,_:chatid);

SendClientMessageToAll(-1,server_msg);

return 
1;

}



CMD:sendtgmessage(playerid,params[]) {

TGSendMessage(g_bot,CHAT_ID,params);

return 
1;





Notes



This plugin is still in WIP and more tests need to be done.If you find any bugs or have anything to contribute feel free to open an issue or pull request on github.

Also be sure to not to share your bot token with anyone it's recommended to store it inside a environment variable.



Repository



Source: https://github.com/Sreyas-Sreelal/tgconnector

Releases: https://github.com/Sreyas-Sreelal/tgconnector/releases

Wiki: https://github.com/Sreyas-Sreelal/tgconnector/wiki (Not complete yet)


  Discord Ban Appeal
Posted by: Gravityfalls - 2019-04-14, 06:33 AM - Forum: Chat - Replies (6)

Hi everyone,

To introduce, I'm Logic_ here.?Roughly one year ago, I was banned from the SA-MP's "unofficial" discord and since then stayed away from it. I think I've deserve to be unbanned and be part of the community once again - since Kalcor has decided to go nuts and ban everyone from the SA-MP forums for the apparent reason of "mutinty" (retardation).

I do think I should have PM'ed this to one of the mods. and not created a thread just for the sake of not getting useless attention. Regardless, I've been banned before by Rehasher for being involved in a server responsible for attacking BA-RP's forum, which I had no part in and was unbanned later. I do not remember for what reasons I was banned now.

Regards.

PS: Here's a PewDiePie video: https://youtu.be/rNbNEcKpFz4?t=378


Heart Og?lny chat
Posted by: Riddick - 2019-04-14, 06:17 AM - Forum: Og?lne - Replies (36)

Czesc,



W tym og?lnym czacie mozemy porozmawiac o wszystkim co sie dzieje ostatnio na scenie Open.MP czy tez SA-MP.?

Po co tu jestesmy, co sie wydarzylo w minionych tygodniach i og?lnie porozmawiac.


  Filipino
Posted by: Dev86 - 2019-04-14, 06:11 AM - Forum: Other - Replies (7)

hello mga gagu


  ?????????
Posted by: hual - 2019-04-14, 06:07 AM - Forum: Other - Replies (10)

????? ?? ?????



[Image: photo_big_26729.jpg]


  The website doesn't work
Posted by: Verc - 2019-04-14, 05:48 AM - Forum: Support - Replies (8)

For some reason, burgershot.gg is not working without VPN(I'm using singapore based VPN). I lived in Indonesia currently. It only says connection timed out. Is this expected to happen?


  German / Deutsch
Posted by: BZ_ - 2019-04-14, 05:44 AM - Forum: German/Deutsch - Replies (45)

Hallo Leute :)


  How does one cope?
Posted by: cuddlypanda - 2019-04-14, 05:44 AM - Forum: Life - Replies (21)

Is it just me or sometimes the things which once?used to bring someone joy just seem bland and tasteless now....Like the mere reasons for someone to crack a smile every day just seem like fading away??

For me personally, I've been struggling with this thought for quite?some time, for two long years I had been waiting to get past a tough period in life where I had no time for myself and now when I'm through, it doesn't seem as joyous as I had imagined, in fact, The reasons which drove me through my tough 2 years just don't excite me anymore! I just lay in bed or eat or casually chat around with friends. Is it just me or does this happen with you all as well? If yes, how does one cope :(


  deleted
Posted by: Atom - 2019-04-14, 05:11 AM - Forum: Libraries - Replies (17)

deleted


  [SUGERENCIA] Un Discord para la Comunidad _-leer compelto-_
Posted by: Tomas Colo-Gar - 2019-04-14, 05:11 AM - Forum: Spanish/Espa?ol - Replies (9)

Hola, Quiero presentar mi idea algo descabellada, trata de crear una Discord de esta comunidad ?Como?

Pues la Discordia se dividir? en Categor?as seg?n los Idiomas Ej: Espa?ol Ingl?s Porruges Etc ... En las categor?as tendran sus canales como Off Topic, chat de voz, memes noticias etc ... (Se puede agregar bots como pokecord, economia o de musica y demas !!) para crear esto r?pido se creara grupos de personas para crear cada categor?a ej: 4 Personas crean la categoria Espa?ol otros 4 la de Ingl?s y hac? sucesivamente, habrancanales de dudas generales donde pod?is poner una gente encargada de contestarlason respect respectivo Rango, y haci no mataremos a los creadores del proyecto tanto, la idea de la discordia me surgi? porque la discordia es una plataforma m?s libre (no digo que el foro no sirve, sino que para m?s informaci?n utiliza la discordia, tambi?n para la comunidad este art?culo no est? disponible en mi opini?n pero si hay alg?n comentario personal que le guste o piense en la idea veamos que pasa



Un gusto haber creado el mensaje !!



Att: Tomas Colomer



Que pasen un buen dia / Tarde o Noche

Perdon si esta incompleto