29.07.2015, 15:35
Hello, what happens is that when someone gets a /state comes off the other player who had a /state how I do not go out to those who already have a /state?
Commands:
Commands:
Quote:
new Text3D:giPlayerStatus[ MAX_PLAYERS ]; zcmd(state, playerid, params[]) { if( !IsPlayerConnected( playerid ) ) return 0; if( !sscanf( params, "s[32]", params[ 0 ] ) ) { new szFormat[ 2 ][ 50 ]; format( szFormat[ 0 ], 31, "%s", params[ 0 ] ); format( szFormat[ 1 ], 49, "State: %s.", szFormat[ 0 ] ); SendClientMessageEx( playerid, COLOR_GRAD2, szFormat[ 1 ] ); Delete3DTextLabel( giPlayerStatus[ playerid ] ); giPlayerStatus[ playerid ] = Create3DTextLabel( szFormat[ 0 ], 0x68EA6CFF, 1.0, 1.0, 1.0, 15.0, 0, 1 ); Attach3DTextLabelToPlayer( giPlayerStatus[ playerid ], playerid, 0.0, 0.0, 0.3 ); } return 1; } zcmd(qstate, playerid, params[]) { if( !IsPlayerConnected( playerid ) ) return 0; Delete3DTextLabel( giPlayerStatus[ playerid ] ); SendClientMessageEx( playerid, COLOR_GRAD2, "State have been removed." ); return 1; } |