11.05.2018, 20:59
Quote:
I do not know why you're just so selfish that I know I need to learn but that's not what I'm supposed to want to be with you and of course I'm starting to know you do not know how to understand me for yourself take you
sorry if I said that's why it's bad for me to ask for bad help? I feel better when you help me than I'm right and I know that I have to learn but I try hard to learn |
PHP код:
public OnPlayerText( playerid, text[ ] )
{
SetPlayerChatBubble( playerid, text, 0xFFFFFFFF, 100.0, 10000 );
if( PlayerInfo[ playerid ][ pAdmin ] > 0 )
{
new str[ 512 ];
format( str, sizeof( str ), "[%s] %s: %s", GetAdminRankName( playerid ), GetPlayerName( playerid ), text );
return 0;
}
return 1;
}
stock GetAdminRankName( playerid )
{
new str[ 32 ];
switch( PlayerInfo[ playerid ][ pAdmin ] )
{
case 1: str = "Rank 1";
case 2: str = "Rank 2";
case 3: str = "Rank 3";
case 4: str = "Rank 4";
case 5: str = "Rank 5";
case 6: str = "Rank 6";
//you can add more if you want
}
return str;
}
enum is used to save player variables, put in the code above your enum name.