Kendi eklentinize native, forward veyatta başka bir tanımlama eklemeniz gerekmez aşşağıda belirttiğimiz iki fonksiyonu eklentinize eklemeniz durumunda kendi eklentinizden chat sistemine tam müdahele edebilirsiniz.
Ana kullanım kodu;
PHP Kod:
public pF_Communication_Pre(iP_ID){
new sL_Showen[56],iL_Len;
iL_Len += formatex(sL_Showen[iL_Len],55-iL_Len,"!g[!n%s!g]",sG_Ranks[iG_Rank[iP_ID]][0]);
iL_Len += formatex(sL_Showen[iL_Len],55-iL_Len,"!g[!n%s!g]",sG_YetkiIsmim[iP_ID]);
formatex(sG_Message,55,"%s",sL_Showen);
}
Ana haberleşme fonksiyonu;
PHP Kod:
}
public pF_Communication(iP_ID,iP_PluginID,iP_Type,iP_Queque){
if(iP_PluginID != 1){
return 0;
}
switch(iP_Type){
case 1 : {
return 1;
}
case 2 : {
return strlen(sG_Message);
}
case 3 : {
return sG_Message[iP_Queque];
}
}
return 0;
}
Özet geçmek olursak aşağıdaki kodları eklentinize yapıştırmanız durumunda artık webailesi chat sistemine bağlanmış olacaksınız.
PHP Kod:
}
public pF_Communication_Pre(iP_ID){
new sL_Showen[56],iL_Len;
iL_Len += formatex(sL_Showen[iL_Len],55-iL_Len,"!g[!n%s!g]",sG_Ranks[iG_Rank[iP_ID]][0]);
iL_Len += formatex(sL_Showen[iL_Len],55-iL_Len,"!g[!n%s!g]",sG_YetkiIsmim[iP_ID]);
formatex(sG_Message,55,"%s",sL_Showen);
}
public pF_Communication(iP_ID,iP_PluginID,iP_Type,iP_Queque){
if(iP_PluginID != 1){
return 0;
}
switch(iP_Type){
case 1 : {
return 1;
}
case 2 : {
return strlen(sG_Message);
}
case 3 : {
return sG_Message[iP_Queque];
}
}
return 0;
}
)

