27.03.2018, 01:47
Код:
format(namadetag, sizeof(nametag), "{%06x} %s (%i)\n{DB816F}HP: %.0f {FFFFFF}- AR: %.0f", GetPlayerColor(i) >>> 8, playername, i, hp, armour);
format(namadetag, sizeof(nametag), "{%06x} %s (%i)\n{DB816F}HP: %.0f {FFFFFF}- AR: %.0f", GetPlayerColor(i) >>> 8, playername, i, hp, armour);
stock ConvertInRPStyle(player_name[MAX_PLAYER_NAME])
{
for(new i; i < MAX_PLAYER_NAME; i++)
{
if(player_name[i] == '_') player_name[i] = ' ';
}
return player_name;
}
format(nametag, sizeof(nametag), "{%06x} %s (%i)\n{DB816F}HP: %.0f {FFFFFF}- AR: %.0f", GetPlayerColor(i) >>> 8, ConvertInRPStyle(playername), i, hp, armour);
PHP код:
PHP код:
|
stock RemoveUnderLine(name[MAX_PLAYER_NAME]) { for(new i; i < MAX_PLAYER_NAME; i++) { if(name[i] == '_') name[i] = ' '; } return name; }
stock GetICName ( playerid ) {
new szICName[ MAX_PLAYER_NAME+1 ];
GetPlayerName( playerid, szICName, sizeof( szICName ) );
for( new i=0; i < strlen( szICName ); ++i ) {
if( szICName[ i ] == '_' ) {
szICName[ i ] = ' ';
}
}
return szICName;
}
stock GetPlayerNameEx(playerid) { new name[MAX_PLAYER_NAME + 1]; GetPlayerName(playerid, name, sizeof(name)); for (new i = 0, len = strlen(name); i < len; i ++) { if (name[i] == '_') name[i] = ' '; } return name; }