| Plugin amx_who - cel mai bun | |
| Autor | Mesaj |
---|
Rank: Level 5 Sex : Data de inscriere : 20/04/2012 Stare de spirit : HaPpY;x | Subiect: Plugin amx_who - cel mai bun Vin Apr 20, 2012 10:18 pm |
|
| Download: [ http://www.girlshare.ro/881135.2 ] Cod: Owner -- abcdefghijklmnopqrstu MaresaL -- abcdefghijklmnopqtu GeneraL --abcdefghijklmnopqr ColoneL -- abcdefghijklmnopt Maior -- abcdefghijmnqrst Sergent -- abcefgijmnoqrs Soldat -- b Instalare: 1. Fisierul amx_who.sma il puneti in Cod: addons/amxmodx/scripting 2. Fisierul amx_who.amxx il puneti in addons/amxmodx/plugins 3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma: Cod: amx_who.amxx Comenzi administrative amx_who - admin_who [!] Sau o alta versiune: new amxx who Cod: #include #include
#define PLUGIN "New AMXX Who" #define VERSION "1.0" #define AUTHOR "Alka"
#define CharsMax(%1) sizeof %1 - 1
#define MAX_GROUPS 11
new g_groupNames[MAX_GROUPS][] = {
"<<>>", "<<>>", "<<>>", "<<>>", "<<>>", "<<>>", "<<>>", "<<>>", "<<>>", "<<>>", "<<I>>" }
new g_groupFlags[MAX_GROUPS][] = {
"abcdefghijklmnopqrstu", // <<>> "abcdefghijklmnopqrs", // <<>> "abcdefghijlmnopqrs", // <<>> "abcdefghijmnopq", // <<>> "abcdefgijmnopq", // <<>> "abcdefijmnop", // <<>> "abcdefijmn", // <<>> "abcdeijm", // <<>> "abcdej", // <<>> "abc", // <<>> "ab" //<<I>> }
new g_groupFlagsValue[MAX_GROUPS];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
for(new i = 0 ; i < MAX_GROUPS ; i++) g_groupFlagsValue[i] = read_flags(g_groupFlags[i]);
register_clcmd("amx_who", "cmdWho", -1, ""); register_clcmd("say /who", "cmdWho", -1, ""); register_clcmd("say /admins", "cmdWho", -1, ""); }
public cmdWho(id) { static sPlayers[32], iNum, iPlayer; static sName[32], sBuffer[1024];
static iLen; iLen = formatex(sBuffer, sizeof sBuffer - 1, " "); iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen,"Admins Online^n^n");
get_players(sPlayers, iNum, "ch");
for(new i = 0; i < MAX_GROUPS ; i++) { iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "color=^"yellow^">..::%s::..^n ", g_groupNames[i]);
for(new x = 0; x < iNum ; x++) { iPlayer = sPlayers[x];
if(get_user_flags(iPlayer) == g_groupFlagsValue[i]) { get_user_name(iPlayer, sName, sizeof sName - 1); iLen += formatex(sBuffer[iLen], CharsMax(sBuffer) - iLen, "%s^n", sName); } } } show_motd(id, sBuffer, "AMXX Who"); return 0; }
- Se instaleaza ca si primul.
COPILATOR ONLINE : http://amx.freakz.ro [pentru copilarea sursei de mai sus] |
| | | |
Subiecte similare | |
|
Pagina 1 din 1 | |
| Permisiunile acestui forum: | Nu puteti raspunde la subiectele acestui forum
| |
| | ');
iframeDoc.close();
pbjs.renderAd(iframeDoc, winningBid.adId);
} else {
let fallback_html = '' + adUnit.custom_fallback.replaceAll("scr' + 'ipt", "script");
iframe.contentDocument.open();
iframe.contentDocument.write(fallback_html);
iframe.contentDocument.close();
}
}
const sendAdserverRequest = () => {
if (pbjs.adserverRequestSent) return;
pbjs.adserverRequestSent = true;
adUnits.forEach(function(adUnit) {
renderWinningBidOrFallback(adUnit);
});
};
const requestBids = () => {
pbjs.adserverRequestSent = false;
pbjs.requestBids({
bidsBackHandler: sendAdserverRequest,
timeout: PREBID_TIMEOUT
});
};
pbjs.que.push(() => {
pbjs.setConfig({
"userSync": {
"syncEnabled": true,
"userIds": [
{
"name": "criteo"
}
],
"syncsPerBidder": 3,
"syncDelay": 3000,
"topics": {
"maxTopics": 5,
"vendors": [
"criteo"
]
}
},
"consentManagement": {
"gdpr": {
"cmpApi": "iab",
"timeout": 500,
"actionTimeout": 10000,
"defaultGdprScope": true,
"allowAuctionWithoutConsent": true
},
"usp": {
"cmpApi": "iab",
"timeout": 1000,
"allowAuctionWithoutConsent": true
}
},
"priceGranularity": {
"buckets": [
{
"precision": 2,
"min": 0,
"max": 5,
"increment": 0.01
},
{
"precision": 2,
"min": null,
"max": 8,
"increment": 0.02
},
{
"precision": 2,
"min": null,
"max": 15,
"increment": 0.05
},
{
"precision": 2,
"min": null,
"max": 20,
"increment": 0.1
},
{
"precision": 2,
"min": null,
"max": 50,
"increment": 0.5
}
]
},
"bidderSettings": {
"criteo": {
"storageAllowed": true
}
},
"paapi": {
"enabled": true,
"bidders": [
"criteo"
],
"defaultForSlots": 1,
"gpt": {
"configWithTargeting": false
}
},
"bidderConfig": {
"bidders": [
"criteo"
],
"config": {
"ortb2": {
"user": {
"ext": {
"consent": {
"source": "sirdata",
"gdprApplies": true
},
"data": {
"eids": [
{
"source": "all-up.com",
"uids": [
{
"id": "d41d8cd98f00b204e9800998ecf8427e",
"atype": 3,
"ext": {
"stype": "hemmd5"
}
},
{
"id": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"atype": 3,
"ext": {
"stype": "hemsha256"
}
}
]
}
]
}
}
}
}
}
}
});
pbjs.addAdUnits(adUnits);
requestBids();
});
setTimeout(() => { sendAdserverRequest(); }, FAILSAFE_TIMEOUT);
|