22/01/2024 09:25
Tenta isso:
Código PHP:
DCMD:vincular(user, channel, params[], DCC_Message:message)
{
new id;
if(sscanf(params, "d", id))
return DCC_SendChannelMessage(channel, "**Use: !vincular [codigo]**");
format(String, sizeof String, "**Id mensagem: %d**", _:message);
DCC_SendChannelMessage(channel, String, "OnMessageSent");
DCC_DeleteMessage(message);
return 1;
}
forward OnMessageSent();
public OnMessageSent()
{
new DCC_Message:message = DCC_GetCreatedMessage();
DCC_SetMessagePersistent(message, true);
SetTimerEx("DeleteMessage", 2000, false, "i", _:message);
}
forward DeleteMessage(DCC_Message:message);
public DeleteMessage(DCC_Message:message){
DCC_DeleteMessage(message);
return 1;
}
HostName: BLOOD DEATHMATCH
Address: ip.blood.ovh
Players: 10 / 50
Ping: 153
Mode: BDM
Language: RUS/ENG
Vídeo de demonstração: https://www.youtube.com/watch?v=Nj-b-lo4l4o
Address: ip.blood.ovh
Players: 10 / 50
Ping: 153
Mode: BDM
Language: RUS/ENG
Vídeo de demonstração: https://www.youtube.com/watch?v=Nj-b-lo4l4o