set player name hook has a stock
This commit is contained in:
parent
5fbccd82eb
commit
a3935e578d
@ -234,8 +234,8 @@ stock Player_GetUnusedAttachIndex( playerid )
|
||||
return cellmin;
|
||||
}
|
||||
|
||||
// purpose: convert integer into dollar string
|
||||
stock number_format( { _, Float, Text3D, Menu, Text, DB, DBResult, bool, File }: variable, prefix = '$', decimals = -1, thousand_seperator = ',', decimal_point = '.', tag = tagof( variable ) ) // by Slice
|
||||
// purpose: convert integer into dollar string (large credit to Slice - i just added a prefix parameter)
|
||||
stock number_format( { _, Float, Text3D, Menu, Text, DB, DBResult, bool, File }: variable, prefix = '$', decimals = -1, thousand_seperator = ',', decimal_point = '.', tag = tagof( variable ) )
|
||||
{
|
||||
static
|
||||
s_szReturn[ 32 ],
|
||||
|
@ -134,7 +134,7 @@ hook OnPlayerDisconnect( playerid, reason )
|
||||
#endif
|
||||
|
||||
/* ** Hooked Functions ** */
|
||||
Security_SetPlayerName( playerid, const name[ ] )
|
||||
stock Security_SetPlayerName( playerid, const name[ ] )
|
||||
{
|
||||
if ( 0 <= playerid < MAX_PLAYERS ) {
|
||||
format ( p_PlayerName[ playerid ], sizeof ( p_PlayerName[ ] ), "%s", name );
|
||||
|
Loading…
Reference in New Issue
Block a user