08.06.2016, 16:04
This Is my conncet msg :
format(string,128,"{00FF00}*** %s [ID:%d] has joined the server.[ Country: %s | IP: Private IP ] ", PlayerName,playerid, GetPlayerCountryName(playerid),IP);
[/PHP]
I want to Update it like This ublic OnPlayerCommandText(playerid, cmdtext[])
{
}
public LoadAccount(playerid) {
new rows, fields,string[128];
cache_get_data(rows, fields, mysql);
if(rows) {
cache_get_field_content(0, "Password", PlayerInfo[playerid][Password], mysql, 200);
cache_get_field_content(0, "RDate", PlayerInfo[playerid][RDate], mysql, 12;
PlayerInfo[playerid][Level] = cache_get_field_content_int(0, "Level");
cache_get_field_content(0, "IP", PlayerInfo[playerid][PIP], mysql, 50);
if(ServerInfo[AccountSecurity] == 1) {
cache_get_field_content(0, "SecurityQ", PlayerInfo[playerid][SQuestion], mysql, 250);
cache_get_field_content(0, "SecurityQA", PlayerInfo[playerid][SQuestionA], mysql, 250);
}
if(ServerInfo[ConnectMessages] == 1) {
switch(PlayerInfo[playerid][Level]) {
case 0: {
format(string,sizeof string,"%s {00FFFF}[ID: %d] Has Joined the server.[ Country: %s | IP: %s ]",pName(playerid),playerid,GetPlayerCountryName(pl ayerid),pIP(playerid));
MessageToAdmins(LIGHTBLUE2, string);
format(string,sizeof string,"%s {00FFFF}[ID: %d] Has Joined the server.[ Country: %s | IP: Private IP ]",pName(playerid),playerid,GetPlayerCountryName(pl ayerid));
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
case 1: {
format(string,128,"*** [Trial Moderator] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: %s ] ", pName(playerid),playerid,GetPlayerCountryName(play erid),pIP(playerid));
MessageToAdmins(LIGHTBLUE2, string);
format(string,128,"*** [Trial Moderator] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: Private IP ] ", pName(playerid),playerid,GetPlayerCountryName(play erid));
Update3DTextLabelText(label[playerid], 0x00FFF0FF, "[ Trial Moderator ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
case 2: {
format(string,128,"*** [Junior Moderator] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: %s ] ", pName(playerid),playerid,GetPlayerCountryName(play erid),pIP(playerid));
MessageToAdmins(LIGHTBLUE2, string);
format(string,128,"*** [Junior Moderator] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: Private IP ] ", pName(playerid),playerid,GetPlayerCountryName(play erid));
Update3DTextLabelText(label[playerid], 0x00FF28FF, "[ Junior Moderator ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
case 3: {
format(string,128,"*** [Super Moderator] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: %s ] ", pName(playerid),playerid,GetPlayerCountryName(play erid),pIP(playerid));
MessageToAdmins(LIGHTBLUE2, string);
format(string,128,"*** [Super Moderator] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: Private IP ] ", pName(playerid),playerid,GetPlayerCountryName(play erid));
Update3DTextLabelText(label[playerid], 0xF5FF00FF, "[ Super Moderator ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
case 4: {
format(string,128,"*** [Administrator] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: %s ] ", pName(playerid),playerid,GetPlayerCountryName(play erid),pIP(playerid));
MessageToAdmins(LIGHTBLUE2, string);
format(string,128,"*** [Administrator] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: Private IP ] ", pName(playerid),playerid,GetPlayerCountryName(play erid));
Update3DTextLabelText(label[playerid], 0xF5A300FF, "[ Administrator ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
case 5: {
format(string,128,"*** [Master Admin] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: %s ] ", pName(playerid),playerid,GetPlayerCountryName(play erid),pIP(playerid));
MessageToAdmins(LIGHTBLUE2, string);
format(string,128,"*** [Master Admin] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: Private IP ] ", pName(playerid),playerid,GetPlayerCountryName(play erid));
Update3DTextLabelText(label[playerid], 0x1400FFFF, "[ Master Admin ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
case 6: {
format(string,128,"*** [Elite Admin] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: %s ] ", pName(playerid),playerid,GetPlayerCountryName(play erid),pIP(playerid));
MessageToAdmins(LIGHTBLUE2, string);
format(string,128,"*** [Elite Admin] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: Private IP ] ", pName(playerid),playerid,GetPlayerCountryName(play erid));
Update3DTextLabelText(label[playerid], 0xB4B4B4FF, "[ Elite Admin ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
case 7: {
format(string,128,"*** [General] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: %s ] ", pName(playerid),playerid,GetPlayerCountryName(play erid),pIP(playerid));
MessageToAdmins(LIGHTBLUE2, string);
format(string,128,"*** [General] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: Private IP ] ", pName(playerid),playerid,GetPlayerCountryName(play erid));
Update3DTextLabelText(label[playerid], 0xFF0000FF, "[ Major Elite ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
case 8: {
format(string,128,"*** [Director] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: %s ] ", pName(playerid),playerid,GetPlayerCountryName(play erid),pIP(playerid));
MessageToAdmins(LIGHTBLUE2, string);
format(string,128,"*** [Director] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: Private IP ] ", pName(playerid),playerid,GetPlayerCountryName(play erid));
Update3DTextLabelText(label[playerid], 0x0037FFFF, "[ Director ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
}
MessageToPlayers(LIGHTBLUE2, string);
PlayerInfo[playerid][Level] = 0;
I mean when player join can Players see His Level admin Im Using DINI And this Script msg with MYsql Who can help em please
format(string,128,"{00FF00}*** %s [ID:%d] has joined the server.[ Country: %s | IP: Private IP ] ", PlayerName,playerid, GetPlayerCountryName(playerid),IP);
[/PHP]
I want to Update it like This ublic OnPlayerCommandText(playerid, cmdtext[])
{
}
public LoadAccount(playerid) {
new rows, fields,string[128];
cache_get_data(rows, fields, mysql);
if(rows) {
cache_get_field_content(0, "Password", PlayerInfo[playerid][Password], mysql, 200);
cache_get_field_content(0, "RDate", PlayerInfo[playerid][RDate], mysql, 12;
PlayerInfo[playerid][Level] = cache_get_field_content_int(0, "Level");
cache_get_field_content(0, "IP", PlayerInfo[playerid][PIP], mysql, 50);
if(ServerInfo[AccountSecurity] == 1) {
cache_get_field_content(0, "SecurityQ", PlayerInfo[playerid][SQuestion], mysql, 250);
cache_get_field_content(0, "SecurityQA", PlayerInfo[playerid][SQuestionA], mysql, 250);
}
if(ServerInfo[ConnectMessages] == 1) {
switch(PlayerInfo[playerid][Level]) {
case 0: {
format(string,sizeof string,"%s {00FFFF}[ID: %d] Has Joined the server.[ Country: %s | IP: %s ]",pName(playerid),playerid,GetPlayerCountryName(pl ayerid),pIP(playerid));
MessageToAdmins(LIGHTBLUE2, string);
format(string,sizeof string,"%s {00FFFF}[ID: %d] Has Joined the server.[ Country: %s | IP: Private IP ]",pName(playerid),playerid,GetPlayerCountryName(pl ayerid));
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
case 1: {
format(string,128,"*** [Trial Moderator] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: %s ] ", pName(playerid),playerid,GetPlayerCountryName(play erid),pIP(playerid));
MessageToAdmins(LIGHTBLUE2, string);
format(string,128,"*** [Trial Moderator] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: Private IP ] ", pName(playerid),playerid,GetPlayerCountryName(play erid));
Update3DTextLabelText(label[playerid], 0x00FFF0FF, "[ Trial Moderator ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
case 2: {
format(string,128,"*** [Junior Moderator] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: %s ] ", pName(playerid),playerid,GetPlayerCountryName(play erid),pIP(playerid));
MessageToAdmins(LIGHTBLUE2, string);
format(string,128,"*** [Junior Moderator] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: Private IP ] ", pName(playerid),playerid,GetPlayerCountryName(play erid));
Update3DTextLabelText(label[playerid], 0x00FF28FF, "[ Junior Moderator ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
case 3: {
format(string,128,"*** [Super Moderator] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: %s ] ", pName(playerid),playerid,GetPlayerCountryName(play erid),pIP(playerid));
MessageToAdmins(LIGHTBLUE2, string);
format(string,128,"*** [Super Moderator] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: Private IP ] ", pName(playerid),playerid,GetPlayerCountryName(play erid));
Update3DTextLabelText(label[playerid], 0xF5FF00FF, "[ Super Moderator ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
case 4: {
format(string,128,"*** [Administrator] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: %s ] ", pName(playerid),playerid,GetPlayerCountryName(play erid),pIP(playerid));
MessageToAdmins(LIGHTBLUE2, string);
format(string,128,"*** [Administrator] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: Private IP ] ", pName(playerid),playerid,GetPlayerCountryName(play erid));
Update3DTextLabelText(label[playerid], 0xF5A300FF, "[ Administrator ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
case 5: {
format(string,128,"*** [Master Admin] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: %s ] ", pName(playerid),playerid,GetPlayerCountryName(play erid),pIP(playerid));
MessageToAdmins(LIGHTBLUE2, string);
format(string,128,"*** [Master Admin] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: Private IP ] ", pName(playerid),playerid,GetPlayerCountryName(play erid));
Update3DTextLabelText(label[playerid], 0x1400FFFF, "[ Master Admin ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
case 6: {
format(string,128,"*** [Elite Admin] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: %s ] ", pName(playerid),playerid,GetPlayerCountryName(play erid),pIP(playerid));
MessageToAdmins(LIGHTBLUE2, string);
format(string,128,"*** [Elite Admin] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: Private IP ] ", pName(playerid),playerid,GetPlayerCountryName(play erid));
Update3DTextLabelText(label[playerid], 0xB4B4B4FF, "[ Elite Admin ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
case 7: {
format(string,128,"*** [General] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: %s ] ", pName(playerid),playerid,GetPlayerCountryName(play erid),pIP(playerid));
MessageToAdmins(LIGHTBLUE2, string);
format(string,128,"*** [General] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: Private IP ] ", pName(playerid),playerid,GetPlayerCountryName(play erid));
Update3DTextLabelText(label[playerid], 0xFF0000FF, "[ Major Elite ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
case 8: {
format(string,128,"*** [Director] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: %s ] ", pName(playerid),playerid,GetPlayerCountryName(play erid),pIP(playerid));
MessageToAdmins(LIGHTBLUE2, string);
format(string,128,"*** [Director] {00FFFF}%s [ID:%d] has joined the server.[ Country: %s | IP: Private IP ] ", pName(playerid),playerid,GetPlayerCountryName(play erid));
Update3DTextLabelText(label[playerid], 0x0037FFFF, "[ Director ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
}
MessageToPlayers(LIGHTBLUE2, string);
PlayerInfo[playerid][Level] = 0;
I mean when player join can Players see His Level admin Im Using DINI And this Script msg with MYsql Who can help em please