Originally Posted by Raza2013
pawn Код:
if(PlayerInfo[playerid][pDonateRank]){ format(string, sizeof(string), "SERVER: {FFFFFF}You are logged in as a level %d Donor.", PlayerInfo[playerid][pDonateRank]); SendClientMessage(playerid, COLOR_NICEGREEN, string);}
Add "else if" after Player Accounts Like this:
pawn Код:
if(PlayerInfo[playerid][pHelper]){ format(string, sizeof(string), "SERVER: {FFFFFF}You are logged in as level %d helper.", PlayerInfo[playerid][pHelper]); SendClientMessage(playerid, COLOR_NICEGREEN, string);} // VIP else if(PlayerInfo[playerid][pDonateRank]){ format(string, sizeof(string), "SERVER: {FFFFFF}You are logged in as a level %d Donor.", PlayerInfo[playerid][pDonateRank]); SendClientMessage(playerid, COLOR_NICEGREEN, string);} // Famed else if(PlayerInfo[playerid][pFamed]){ SendClientMessage(playerid, COLOR_NICEGREEN,"SERVER: {FFFFFF}You are logged in as a Famed Player.");} // Developer else if(PlayerInfo[playerid][pDeveloper]){ format(string, sizeof(string), "SERVER: {FFFFFF}You are logged in as a level %d Devloper.", PlayerInfo[playerid][pDeveloper]); SendClientMessage(playerid, COLOR_NICEGREEN, string);} // Mappers else if(PlayerInfo[playerid][pMapper]){ format(string, sizeof(string), "SERVER: {FFFFFF}You are logged in as a level %d Mapper.", PlayerInfo[playerid][pMapper]); SendClientMessage(playerid, COLOR_NICEGREEN, string);} // Admin else if(PlayerInfo[playerid][pAdmin]){ format(string, sizeof(string), "SERVER: {FFFFFF}You are logged in as level %d administrator.", PlayerInfo[playerid][pAdmin]); SendClientMessage(playerid, COLOR_NICEGREEN, string);} // Admin Messages else if(PlayerInfo[playerid][pAdmin]){ format(string, sizeof(string), "AdmLogin: Administrator %s has logged in. (Adminstration Level : %d)", RPN(playerid), PlayerInfo[playerid][pAdmin]); SendAdminMessage(COLOR_LIGHTBLUE, string);} }
Did'nt tested i guess it work's.
|