SA-MP Forums Archive
I want to Update my COnncet Msg - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: I want to Update my COnncet Msg (/showthread.php?tid=609086)



I want to Update my COnncet Msg - jaberaaa - 08.06.2016

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


Re: I want to Update my COnncet Msg - Vince - 08.06.2016

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


Re: I want to Update my COnncet Msg - jaberaaa - 08.06.2016

? I dont know


Re: I want to Update my COnncet Msg - N0FeaR - 08.06.2016

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);




Re: I want to Update my COnncet Msg - jaberaaa - 08.06.2016

No Not like that


Re: I want to Update my COnncet Msg - jaberaaa - 08.06.2016

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); 



Re: I want to Update my COnncet Msg - jaberaaa - 08.06.2016

Any one know??


Re: I want to Update my COnncet Msg - jaberaaa - 09.06.2016

? who know