I want to Update my COnncet Msg
#1

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
Reply
#2

Please use either [code], [php] or [pawn] tags.
Reply
#3

? I dont know
Reply
#4

When you post a code on the forum do it like this
PHP код:
 
PHP код:
public LoadAccount(playerid) {
new 
rowsfields,string[128];
cache_get_data(rowsfieldsmysql);
if(
rows) {
cache_get_field_content(0"Password"PlayerInfo[playerid][Password], mysql200);
cache_get_field_content(0"RDate"PlayerInfo[playerid][RDate], mysql12;
PlayerInfo[playerid][Level] = cache_get_field_content_int(0"Level");
cache_get_field_content(0"IP"PlayerInfo[playerid][PIP], mysql50);
if(
ServerInfo[AccountSecurity] == 1) {
cache_get_field_content(0"SecurityQ"PlayerInfo[playerid][SQuestion], mysql250);
cache_get_field_content(0"SecurityQA"PlayerInfo[playerid][SQuestionA], mysql250);

Reply
#5

No Not like that
Reply
#6

PHP]You See This Connect 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 change it with admin level when admin connect it will be like this
PHP код:
format(string,128,"{00FF00}[Junior Admin] %s [ID:%d] has joined the server.[ Country: %s | IP: Private IP ] "PlayerName,playeridGetPlayerCountryName(playerid),IP); 
Reply
#7

Any one know??
Reply
#8

? who know
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)